Skip to content

Commit 1d1f2fe

Browse files
authored
New analyzer: update documentation of becomes_typeinfo (#7161)
In some cases we don't know whether something could become a TypeInfo, but it might. Not sure if this is the best way to do this, but this helps in some scenarios (but could cause problems in others, perhaps). Follow-up to #7158.
1 parent cc3b54b commit 1d1f2fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@ class C(Sequence[C]): ...
27942794
node: AST node that contains the definition that caused this to
27952795
be created. This is useful for tracking order of incomplete definitions
27962796
and for debugging.
2797-
becomes_typeinfo: If True, this refers something that will later
2797+
becomes_typeinfo: If True, this refers something that could later
27982798
become a TypeInfo. It can't be used with type variables, in
27992799
particular, as this would cause issues with class type variable
28002800
detection.

0 commit comments

Comments
 (0)