Skip to content

Commit

Permalink
Fix E721
Browse files Browse the repository at this point in the history
Do not compare types, use `isinstance()`
  • Loading branch information
kiendang committed Aug 9, 2023
1 parent 7898766 commit 7bd4a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_django/management/commands/graphql_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_schema(self, schema, out, indent):
def handle(self, *args, **options):
options_schema = options.get("schema")

if options_schema and type(options_schema) is str:
if options_schema and isinstance(options_schema, str):
module_str, schema_name = options_schema.rsplit(".", 1)
mod = importlib.import_module(module_str)
schema = getattr(mod, schema_name)
Expand Down

0 comments on commit 7bd4a68

Please sign in to comment.