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
fromtypingimportTYPE_CHECKING, overloadifTYPE_CHECKING:
@overload# E: An overloaded function outside a stub file must have an implementationdeff(x: int) ->str:
...
@overloaddeff(x: str) ->bytes:
...
I think that if code is in if TYPE_CHECKING then it shouldn't need an implementation though.