docs: some documentation/thoughts on properly implementing overlay packages
This commit is contained in:
parent
224ba521e3
commit
84d835962d
12 changed files with 237 additions and 0 deletions
0
doc/overlays/overlay/src/my/py.typed
Normal file
0
doc/overlays/overlay/src/my/py.typed
Normal file
8
doc/overlays/overlay/src/my/twitter/all.py
Normal file
8
doc/overlays/overlay/src/my/twitter/all.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
print(f'[overlay] {__name__} hello')
|
||||
|
||||
from .common import merge
|
||||
|
||||
def tweets() -> list[str]:
|
||||
from . import gdpr
|
||||
from . import talon
|
||||
return merge(gdpr, talon)
|
9
doc/overlays/overlay/src/my/twitter/talon.py
Normal file
9
doc/overlays/overlay/src/my/twitter/talon.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
print(f'[overlay] {__name__} hello')
|
||||
|
||||
def tweets() -> list[str]:
|
||||
return [
|
||||
'talon tweet 1',
|
||||
'talon tweet 2',
|
||||
]
|
||||
|
||||
trigger_mypy_error: str = 123
|
Loading…
Add table
Add a link
Reference in a new issue