We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7898766 commit 7bd4a68Copy full SHA for 7bd4a68
graphene_django/management/commands/graphql_schema.py
@@ -83,7 +83,7 @@ def get_schema(self, schema, out, indent):
83
def handle(self, *args, **options):
84
options_schema = options.get("schema")
85
86
- if options_schema and type(options_schema) is str:
+ if options_schema and isinstance(options_schema, str):
87
module_str, schema_name = options_schema.rsplit(".", 1)
88
mod = importlib.import_module(module_str)
89
schema = getattr(mod, schema_name)
0 commit comments