We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
twisted.logger.Logger.__get__ currently specifies its return type as object, which messes up mypy's typechecking when used as part of a class:
twisted.logger.Logger.__get__
object
from twisted.logger import Logger class Foo: log = Logger() def run(self) -> None: self.log.info("Hello!")
$ mypy test.py mptest.py:8: error: "object" has no attribute "info"
trac-id__10119 10119 type__defect defect reporter__jchristgit jchristgit priority__normal normal milestone__None None branch__ branch_author__ status__closed closed resolution__fixed fixed component__logger logger keywords__None None time__1615217688789927 1615217688789927 changetime__1615226512424913 1615226512424913 version__None None owner__jchristgit jchristgit
The text was updated successfully, but these errors were encountered:
See [https://github.com//pull/1541]
Sorry, something went wrong.
closed
This was closed in f93f647
Removing review keyword since Thomas forgot to do it.
review
No branches or pull requests
twisted.logger.Logger.__get__
currently specifies its return type asobject
, which messes up mypy's typechecking when used as part of a class:Searchable metadata
The text was updated successfully, but these errors were encountered: