You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no warning when the as clause is not there.
This clause is required in some spaces in order to avoid having the annotations symbol pollute the
namespace and is not supposed to affect the processing future clause.
This check is incorrect. I think that instead it should be checking the future_imports attribute
of the astroid Module object. I think this might work:
defis_postponed_evaluation_enabled(node: astroid.node_classes.NodeNG) ->bool:
"""Check if the postponed evaluation of annotations is enabled"""module=node.root()
return"annotations"inmodule.future_imports
In pylint 2.6.0 (and earlier) under python 3.7, the following produces an incorrect warning for
the '-> C:' return value.
There is no warning when the
as
clause is not there.This clause is required in some spaces in order to avoid having the
annotations
symbol pollute thenamespace and is not supposed to affect the processing future clause.
See https://docs.python.org/3/reference/simple_stmts.html#future
The text was updated successfully, but these errors were encountered: