Force keyword only args in actor spawn methods
							parent
							
								
									8fbdfd6a3a
								
							
						
					
					
						commit
						7c73775474
					
				| 
						 | 
					@ -47,6 +47,7 @@ class ActorNursery:
 | 
				
			||||||
    async def start_actor(
 | 
					    async def start_actor(
 | 
				
			||||||
        self,
 | 
					        self,
 | 
				
			||||||
        name: str,
 | 
					        name: str,
 | 
				
			||||||
 | 
					        *,
 | 
				
			||||||
        bind_addr: Tuple[str, int] = ('127.0.0.1', 0),
 | 
					        bind_addr: Tuple[str, int] = ('127.0.0.1', 0),
 | 
				
			||||||
        statespace: Optional[Dict[str, Any]] = None,
 | 
					        statespace: Optional[Dict[str, Any]] = None,
 | 
				
			||||||
        rpc_module_paths: List[str] = None,
 | 
					        rpc_module_paths: List[str] = None,
 | 
				
			||||||
| 
						 | 
					@ -87,6 +88,7 @@ class ActorNursery:
 | 
				
			||||||
        self,
 | 
					        self,
 | 
				
			||||||
        name: str,
 | 
					        name: str,
 | 
				
			||||||
        fn: typing.Callable,
 | 
					        fn: typing.Callable,
 | 
				
			||||||
 | 
					        *,
 | 
				
			||||||
        bind_addr: Tuple[str, int] = ('127.0.0.1', 0),
 | 
					        bind_addr: Tuple[str, int] = ('127.0.0.1', 0),
 | 
				
			||||||
        rpc_module_paths: Optional[List[str]] = None,
 | 
					        rpc_module_paths: Optional[List[str]] = None,
 | 
				
			||||||
        statespace: Dict[str, Any] = None,
 | 
					        statespace: Dict[str, Any] = None,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue