Skip to content

Commit 06d8399

Browse files
committed
Fix E721
Do not compare types, use `isinstance()`
1 parent f869eca commit 06d8399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_django/management/commands/graphql_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_schema(self, schema, out, indent):
8383
def handle(self, *args, **options):
8484
options_schema = options.get("schema")
8585

86-
if options_schema and type(options_schema) is str:
86+
if options_schema and isinstance(options_schema, str):
8787
module_str, schema_name = options_schema.rsplit(".", 1)
8888
mod = importlib.import_module(module_str)
8989
schema = getattr(mod, schema_name)

0 commit comments

Comments
 (0)