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
Can a class decorator "change" the type of the decorated class?
My issue is with a "wrapper" class that I created, but I can replicate with even this example:
@strclassC: ...
reveal_type(C)
if I launch mypy I see
$ mypy <(echo '@str> class C: ...> reveal_type(C)')
/dev/fd/63:3: note: Revealed type is 'def () -> __main__.C'
$