Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Sep 3, 2024
1 parent eb7c86b commit ea84021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphql/pyutils/description.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def unregister(cls, base: type) -> None:
msg = "Only types can be unregistered."
raise TypeError(msg)
if isinstance(cls.bases, tuple):
if base in cls.bases:
if base in cls.bases: # pragma: no branch
cls.bases = tuple(b for b in cls.bases if b is not base)
if not cls.bases:
cls.bases = object
Expand Down

0 comments on commit ea84021

Please sign in to comment.