Closed ipcoder closed 1 year ago
Version 1.9.1 python 3.9
Code below fails if annotations is imported:
annotations
from __future__ import annotations
from multimethod import overload @overload def g(x: int, c: str = None): print(x, c) @overload def g(c: str): print(c) print('overload') g(1) g('10') g(11, '12') # fails HERE
Fix will be in the next release.
Version 1.9.1 python 3.9
Code below fails if
annotations
is imported: