docs: document more experiments with overlays in docs
This commit is contained in:
parent
adbc0e73a2
commit
a8f8858cb1
7 changed files with 196 additions and 2 deletions
0
doc/overlays/overlay2/src/my/py.typed
Normal file
0
doc/overlays/overlay2/src/my/py.typed
Normal file
13
doc/overlays/overlay2/src/my/twitter/__init__.py
Normal file
13
doc/overlays/overlay2/src/my/twitter/__init__.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
print(f'[overlay2] {__name__} hello')
|
||||
|
||||
from pkgutil import extend_path
|
||||
__path__ = extend_path(__path__, __name__)
|
||||
|
||||
def hack_gdpr_module() -> None:
|
||||
from . import gdpr
|
||||
tweets_orig = gdpr.tweets
|
||||
def tweets_patched():
|
||||
return [t.replace('gdpr', 'GDPR') for t in tweets_orig()]
|
||||
gdpr.tweets = tweets_patched
|
||||
|
||||
hack_gdpr_module()
|
Loading…
Add table
Add a link
Reference in a new issue