Add return type to debugger factory
							parent
							
								
									d906c81f14
								
							
						
					
					
						commit
						4f166500d0
					
				|  | @ -418,12 +418,13 @@ async def _breakpoint( | ||||||
|     debug_func(actor) |     debug_func(actor) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def _mk_pdb(): | def _mk_pdb() -> PdbwTeardown: | ||||||
|  | 
 | ||||||
|     # XXX: setting these flags on the pdb instance are absolutely |     # XXX: setting these flags on the pdb instance are absolutely | ||||||
|     # critical to having ctrl-c work in the ``trio`` standard way! |     # critical to having ctrl-c work in the ``trio`` standard way!  The | ||||||
|     # The stdlib's pdb supports entering the current sync frame |     # stdlib's pdb supports entering the current sync frame on a SIGINT, | ||||||
|     # on a SIGINT, with ``trio`` we pretty much never want this |     # with ``trio`` we pretty much never want this and if we did we can | ||||||
|     # and we did we can handle it in the ``tractor`` task runtime. |     # handle it in the ``tractor`` task runtime. | ||||||
| 
 | 
 | ||||||
|     pdb = PdbwTeardown() |     pdb = PdbwTeardown() | ||||||
|     pdb.allow_kbdint = True |     pdb.allow_kbdint = True | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue