Mypy check untyped functions#5673
Conversation
Signed-off-by: Felix Schnabel <[email protected]>
Signed-off-by: Felix Schnabel <[email protected]>
Signed-off-by: Felix Schnabel <[email protected]>
Signed-off-by: Felix Schnabel <[email protected]>
Signed-off-by: Felix Schnabel <[email protected]>
Signed-off-by: Felix Schnabel <[email protected]>
Signed-off-by: Felix Schnabel <[email protected]>
Signed-off-by: Felix Schnabel <[email protected]>
Signed-off-by: Felix Schnabel <[email protected]>
Signed-off-by: Felix Schnabel <[email protected]>
Signed-off-by: Felix Schnabel <[email protected]>
|
I'm a bit confused by the auto fix by pre-commit.ci. I thought that type unions with |
that particular file has |
Signed-off-by: Felix Schnabel <[email protected]>
|
Is it ok to add venv to the exclude path of black or should it be in another PR with an extra issue? |
sure. could you please also avoid |
…tch_endianness(). Signed-off-by: Felix Schnabel <[email protected]>
2003556 to
df06306
Compare
Signed-off-by: Felix Schnabel <[email protected]>
|
/build |
|
/build |
|
thanks @Shadow-Devil, I can see that the type annotation enhancements addressed a few potential bugs, that's great. |
|
@wyli Thank you for apprechiating my work! I would like to go on and as my next type checking enhancement type the deprecated & deprecated_args decorators, since otherwise all functions annotated with them lose type information. Do you think this is a good next step? If yes, I will create an issue and work on it😄 |
|
thanks, I think those utilities will still need some refactoring (such as for #5653), type checking support could come later after that. But it's a good idea and please help create a feature request... |
Fixes #5657.
Description
Enable config to also type check untyped functions (not in tests).
# type: ignorewas addedTypes of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.