-
Notifications
You must be signed in to change notification settings - Fork 6
Initial mypy implementation #405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
f544a68
315a294
5bc4ccd
841aca7
43b27f8
1b7ed32
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[mypy-txaio.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-influxdb.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-autobahn.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-deprecation.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-coverage.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-so3g.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-progress.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-spt3g.*] | ||
ignore_missing_imports = True |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have another comment related to this file and our typing "completeness". I had been looking for some specification on what makes a # Class with known type
class MyClass:
height: float = 2.0
def __init__(self, name: str, age: int):
self.age: int = age
@property
def name(self) -> str:
...
# Class with partially unknown type
class MyClass:
# Missing type annotation for class variable
height = 2.0
# Missing input parameter annotations
def __init__(self, name, age):
# Missing type annotation for instance variable
self.age = age
# Missing return type annotation
@property
def name(self):
... I don't think we have enough of There are some interesting discussions on the We have a pretty limited downstream user base, but what is the implication for typing efforts in Thoughts on more thoroughly typingI also found this discussion about how typing simple examples like: # Class with partially unknown type
class BaseClass:
# Missing type annotation
height = 2.0 as class BaseClass:
height: float = 2.0 feels redundant. The response to that post comes from one of the maintainers of pyright, Microsoft's static type checker -- this seems to be the core for Pylance, the default LSP for VS Code. There I learned about Running that we score a 17.3% in this branch currently.
Thinking about our approach to enforcing PEP8 through On top of that, a lot of the modules in
|
Uh oh!
There was an error while loading. Please reload this page.