-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
With mypy 0.990 the complex/int/float promotion was changed (see python/mypy#14030).
Therefore checks like isinstance(node, ast.Num) and isinstance(node.n, int)
fails with strict mode enabled.
The recommendation by mypy is to change complex to Union[int, float, complex]
. Are there any objections to do so in the ast module?
Metadata
Metadata
Assignees
Labels
No labels