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?