mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-04 12:23:14 +03:00
change erroneous issubclass call to isinstance
This commit is contained in:
parent
c26b260c73
commit
eb53f733c2
|
@ -321,7 +321,7 @@ class InspectFilter:
|
||||||
def _is_starlette_request_cls(self, instance: object) -> bool:
|
def _is_starlette_request_cls(self, instance: object) -> bool:
|
||||||
return starlette \
|
return starlette \
|
||||||
and isinstance(instance, type) \
|
and isinstance(instance, type) \
|
||||||
and issubclass(instance, starlette.requests.Request)
|
and isinstance(instance, starlette.requests.Request)
|
||||||
|
|
||||||
def _is_builtin(self, instance: object) -> bool:
|
def _is_builtin(self, instance: object) -> bool:
|
||||||
return inspect.isbuiltin(instance)
|
return inspect.isbuiltin(instance)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user