Skip to content

Commit 6872960

Browse files
chore: improved helper typing and reqork autodoc class resolution
1 parent 1c23098 commit 6872960

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
doc: .venv
2525
. .venv/bin/activate ; \
26-
tools/prepareBuild.sh doc ; \
2726
make -C docs/source/ clean ; \
2827
make -C docs/source/ html ;
2928

docs/source/sphinx_modules/sphinx_ext_autosummary_reworked.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _getInherited(_obj):
153153

154154
def _getSignals(_obj):
155155
ret = []
156-
for _name in (_th:=get_type_hints(_obj,localns={'TTkContainer':ttk.TTkContainer})):
156+
for _name in (_th:=get_type_hints(_obj,localns=ttk.__dict__)):
157157
# print(f"{_th=}")
158158
if _name.startswith('_'): continue
159159
if 'pyTTkSignal' in str(_th[_name]):

libs/pyTermTk/TermTk/TTkCore/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self,x,y,widget,prevFocus,modal):
6262
self._prevFocus = prevFocus
6363
self._modal = modal
6464
widget.move(x,y)
65-
_overlay: list[_Overlay] = []
65+
_overlay: list[TTkHelper._Overlay] = []
6666

6767
@staticmethod
6868
def updateAll() -> None:
@@ -140,7 +140,7 @@ def focusLastModal() -> None:
140140
modal._widget.setFocus()
141141

142142
@staticmethod
143-
def getLastModal() -> Optional["_Overlay"]:
143+
def getLastModal() -> Optional[TTkHelper._Overlay]:
144144
modal = None
145145
for o in TTkHelper._overlay:
146146
if o._modal:

0 commit comments

Comments
 (0)