mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Silence another "default role used" warning in typing.rst
This should make ware-docs green again.
This commit is contained in:
		
							parent
							
								
									c301cbf445
								
							
						
					
					
						commit
						fa95068081
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -86,7 +86,7 @@ but the result will always be of type ``int``. This lets you pass in a
 | 
				
			||||||
``UserId`` wherever an ``int`` might be expected, but will prevent you from
 | 
					``UserId`` wherever an ``int`` might be expected, but will prevent you from
 | 
				
			||||||
accidentally creating a ``UserId`` in an invalid way::
 | 
					accidentally creating a ``UserId`` in an invalid way::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   # `output` is of type `int`, not `UserId`
 | 
					   # 'output' is of type 'int', not 'UserId'
 | 
				
			||||||
   output = UserId(23413) + UserId(54341)
 | 
					   output = UserId(23413) + UserId(54341)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Note that these checks are enforced only by the static type checker. At runtime
 | 
					Note that these checks are enforced only by the static type checker. At runtime
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue