Skip to content

Commit

Permalink
Use the | syntax for issubclass instead of a tuple to appease ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
ghickman committed May 21, 2024
1 parent e224e78 commit 5fb6adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cbv/importer/importers.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _handle_class_on_module(
if inspect.getsourcefile(member) != inspect.getsourcefile(parent):
return None

if issubclass(member, (Exception, Warning)):
if issubclass(member, Exception | Warning):
return None

yield Klass(
Expand Down

0 comments on commit 5fb6adf

Please sign in to comment.