mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-11-04 09:57:53 +03:00 
			
		
		
		
	Fix E721
Do not compare types, use `isinstance()`
This commit is contained in:
		
							parent
							
								
									f869eca340
								
							
						
					
					
						commit
						06d839932f
					
				| 
						 | 
				
			
			@ -83,7 +83,7 @@ class Command(CommandArguments):
 | 
			
		|||
    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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user