ch11-24: clean up by @eumiro & sync with Atlas
This commit is contained in:
6
13-protocol-abc/typing/randompickload.py
Normal file
6
13-protocol-abc/typing/randompickload.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from typing import Protocol, runtime_checkable, Any, Iterable
|
||||
from randompick import RandomPicker
|
||||
|
||||
@runtime_checkable # <1>
|
||||
class LoadableRandomPicker(RandomPicker, Protocol): # <2>
|
||||
def load(self, Iterable) -> None: ... # <3>
|
||||
Reference in New Issue
Block a user