Skip to content

Commit

Permalink
Fix linting issue
Browse files Browse the repository at this point in the history
ruff 0.5.0 wants us to use "is" instead of "==" for singletons.
  • Loading branch information
willkg committed Jul 1, 2024
1 parent 4ac3aad commit 0dc13a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/markus/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ def get_metrics(thing="", extra="", filters=None):
if not isinstance(thing, str):
# If it's not a str, it's either a class or an instance. Handle
# accordingly.
if type(thing) == type:
if type(thing) is type:
thing = "%s.%s" % (thing.__module__, thing.__name__)
else:
thing = "%s.%s" % (thing.__class__.__module__, thing.__class__.__name__)
Expand Down

0 comments on commit 0dc13a4

Please sign in to comment.