File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ def __hash__(self) -> int:
547
547
return hash (self .name )
548
548
549
549
def __repr__ (self ) -> str :
550
- return self .name
550
+ return f' { self .__class__ . __name__ } ( { self . name !r } )'
551
551
552
552
553
553
class TypeAliasModule :
Original file line number Diff line number Diff line change @@ -94,11 +94,11 @@ def wrapper():
94
94
def test_TypeAliasForwardRef ():
95
95
alias = TypeAliasForwardRef ('example' )
96
96
sig_str = stringify_annotation (alias , 'fully-qualified-except-typing' )
97
- assert sig_str == 'example'
97
+ assert sig_str == "TypeAliasForwardRef( 'example')"
98
98
99
99
alias = Optional [alias ] # NoQA: UP007
100
100
sig_str = stringify_annotation (alias , 'fully-qualified-except-typing' )
101
- assert sig_str == 'example | None'
101
+ assert sig_str == "TypeAliasForwardRef( 'example') | None"
102
102
103
103
104
104
def test_TypeAliasNamespace ():
You can’t perform that action at this time.
0 commit comments