zephyr/scripts
Martí Bolívar c6bb336bc1 dtlib: add type checking for DT.root
We'd like users of this API to know that DT.root is always a Node,
and not an Optional[Node].

However, although DT.__init__ throws an exception if the resulting DT
object would have no root node, static analysis can't tell that since
the root instance attribute starts out as None during initialization,
so checkers like mypy are convinced it's Optional[Node].

Since this is really OK, we'll quiet the type checker down by stashing
the instance attribute in self._root instead, and providing a root
property accessor that is annotated to return Node instead of
Optional[Node]. We can tell mypy to ignore what looks like a potential
None here to allow callers to treat the result as a Node.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-05-05 13:13:12 -05:00
..
checkpatch kernel: add an architecture specific structs header 2021-04-21 09:03:47 -04:00
ci actions: cocci: remove boolean.cocci as it take too long 2021-05-03 17:11:12 -04:00
coccinelle coccinelle: check reserved symbols based on a file 2021-04-30 22:09:43 -04:00
coredump debug: coredump: remove z_ prefix for stuff used outside subsys 2021-01-21 22:08:59 -05:00
dts dtlib: add type checking for DT.root 2021-05-05 13:13:12 -05:00
footprint script: add ram and rom total size to json file 2021-04-26 14:23:13 -04:00
gitlint
kconfig tracing: remove cpu_stats in favor of thread runtime stats 2021-04-16 15:31:24 -04:00
logging/dictionary logging: add support for dictionary based logging 2021-04-28 22:25:42 +02:00
net
pylib/twister sanitycheck: Add a feature which can handle pytest script. 2021-05-04 19:08:18 -04:00
release twister: change all occurances of sanitycheck 2020-12-11 14:13:02 -05:00
schemas/twister sanitycheck: Add a feature which can handle pytest script. 2021-05-04 19:08:18 -04:00
support
tests twister: remove some leftover sanitycheck mentions 2020-12-14 14:13:16 -05:00
tracing
west_commands west: spdx: Generate SPDX 2.2 tag-value documents 2021-05-05 11:14:06 -04:00
.gitignore cleanup: rename sanitycheck references to twister 2021-01-14 07:50:52 -06:00
checkpatch.pl scripts: checkpatch: do not require top-level Makefile 2021-03-29 10:59:28 -04:00
checkstack.pl
coccicheck
dir_is_writeable.py
file2hex.py
gen_app_partitions.py
gen_cfb_font_header.py
gen_gcov_files.py
gen_handles.py scripts: gen_handles.py: initialize handle.device 2021-04-30 15:16:02 +02:00
gen_kobject_list.py scripts: gen_kobject_list: no need to specify linker section 2021-04-27 13:32:00 -04:00
gen_kobject_placeholders.py kernel: generate placeholders for kobj tables before final build 2021-04-27 13:32:00 -04:00
gen_offset_header.py
gen_relocate_app.py scripts: Set align size for code relocated 2021-05-04 15:46:52 +02:00
gen_syscalls.py scripts: gen_syscalls: declare syscalls with void instead of zero args 2021-03-05 12:42:36 -05:00
get_maintainer.py
list_boards.py scripts: add list_boards.py 2021-01-15 15:07:49 -05:00
mergehex.py
parse_syscalls.py
process_gperf.py
requirements-base.txt requirements-base.txt: fix pylink package name 2021-05-03 16:24:09 -05:00
requirements-build-test.txt scripts: move pip pykwalify from requirements-build-test to -base 2021-01-18 16:56:24 -05:00
requirements-compliance.txt requirements-compliance: restrict junitparser version < 2 2021-01-13 07:58:37 -05:00
requirements-doc.txt doc: use pygments devicetree language support 2021-05-04 22:42:15 -04:00
requirements-extras.txt modules: nanopb: introduce new module 2021-04-08 14:57:55 +02:00
requirements-run-test.txt requirements: Update to pyocd 0.29 for LPC55S69 support 2021-01-21 15:53:22 -05:00
requirements.txt
series-push-hook.sh
spelling.txt
subfolder_list.py
tags.sh scripts: Update paths on tags.sh 2021-02-19 05:28:09 -06:00
twister twister: improve set balancing 2021-04-22 21:15:07 -04:00
uf2conv.py cmake: Add UF2 as an additional build output option. 2021-02-23 21:11:04 +01:00
user_wordsize.py
valgrind.supp
west-commands.yml west: spdx: Generate SPDX 2.2 tag-value documents 2021-05-05 11:14:06 -04:00
zephyr_module.py scripts: modules: support west group feature 2021-01-29 08:06:17 -05:00