File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,17 +43,17 @@ class Foo:
43
43
44
44
def is_dataclass_any (arg : Any ) -> None :
45
45
if dc .is_dataclass (arg ):
46
- assert_type (arg , DataclassInstance | type [ DataclassInstance ])
46
+ assert_type (arg , Union [ " DataclassInstance" , Type [ " DataclassInstance" ] ])
47
47
48
48
49
49
def is_dataclass_object (arg : object ) -> None :
50
50
if dc .is_dataclass (arg ):
51
- assert_type (arg , DataclassInstance | type [ DataclassInstance ])
51
+ assert_type (arg , Union [ " DataclassInstance" , Type [ " DataclassInstance" ] ])
52
52
53
53
54
54
def is_dataclass_type (arg : type ) -> None :
55
55
if dc .is_dataclass (arg ):
56
- assert_type (arg , type [ DataclassInstance ])
56
+ assert_type (arg , Type [ " DataclassInstance" ])
57
57
58
58
59
59
def check_other_isdataclass_overloads (x : type , y : object ) -> None :
You can’t perform that action at this time.
0 commit comments