Skip to content

Commit

Permalink
Reword the condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR committed Feb 10, 2025
1 parent 5e2444b commit 8a90484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web_poet/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def is_injectable(cls: Any) -> bool:
"""Return True if ``cls`` is a class which inherits
from :class:`~.Injectable`."""
return (
not isinstance(cls, GenericAlias)
and isinstance(cls, type)
isinstance(cls, type)
and not isinstance(cls, GenericAlias)
and issubclass(cls, Injectable)
)

Expand Down

0 comments on commit 8a90484

Please sign in to comment.