mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 04:06:46 +00:00 
			
		
		
		
	 82b52f6b84
			
		
	
	
		82b52f6b84
		
	
	
	
	
		
			
			NB: The type aliases (SchemaInfo et al) declare intent for some of the "dictly-typed" objects we pass around in introspect.py. They do not enforce the shape of those objects, and cannot, until Python 3.7 or later. (And even then, it may not be "worth it".) Annotations are also added to the QAPISchemaEntity __init__ method in schema.py to allow mypy to statically prove the type of typ.name, needed to prove the return type of QAPISchemaGenIntrospectVisitor._use_type(). Signed-off-by: John Snow <jsnow@redhat.com> Message-Id: <20210216021809.134886-15-jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> [Note on QAPISchemaEntity.__init__() squashed into commit message, Comment wrapped to conform to PEP 8] Signed-off-by: Markus Armbruster <armbru@redhat.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			510 B
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			510 B
		
	
	
	
		
			INI
		
	
	
	
	
	
| [mypy]
 | |
| strict = True
 | |
| disallow_untyped_calls = False
 | |
| python_version = 3.6
 | |
| 
 | |
| [mypy-qapi.error]
 | |
| disallow_untyped_defs = False
 | |
| disallow_incomplete_defs = False
 | |
| check_untyped_defs = False
 | |
| 
 | |
| [mypy-qapi.expr]
 | |
| disallow_untyped_defs = False
 | |
| disallow_incomplete_defs = False
 | |
| check_untyped_defs = False
 | |
| 
 | |
| [mypy-qapi.parser]
 | |
| disallow_untyped_defs = False
 | |
| disallow_incomplete_defs = False
 | |
| check_untyped_defs = False
 | |
| 
 | |
| [mypy-qapi.schema]
 | |
| disallow_untyped_defs = False
 | |
| disallow_incomplete_defs = False
 | |
| check_untyped_defs = False
 |