Skip to content

Commit 7398948

Browse files
committed
Use the | syntax for issubclass instead of a tuple to stop UP038 errors
1 parent 046bdc4 commit 7398948

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cbv/importer/importers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _handle_class_on_module(
111111
if inspect.getsourcefile(member) != inspect.getsourcefile(parent):
112112
return None
113113

114-
if issubclass(member, (Exception, Warning)):
114+
if issubclass(member, Exception | Warning):
115115
return None
116116

117117
yield Klass(

0 commit comments

Comments
 (0)