initial commit
This commit is contained in:
2
src/hooked_containers/__init__.py
Normal file
2
src/hooked_containers/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def hello() -> str:
|
||||
return "Hello from hooked-containers!"
|
||||
10
src/hooked_containers/list.py
Normal file
10
src/hooked_containers/list.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from typing import Generic, TypeVar
|
||||
|
||||
T = TypeVar('T')
|
||||
|
||||
class HookedList(Generic[T], list[T]):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def __repr__(self):
|
||||
return f'{self.__class__.__name__}({super().__repr__()})'
|
||||
0
src/hooked_containers/py.typed
Normal file
0
src/hooked_containers/py.typed
Normal file
Reference in New Issue
Block a user