mirror of
https://github.com/gumyr/build123d.git
synced 2026-03-07 14:22:03 -08:00
Add type annotation for builder_context
This commit is contained in:
parent
f062f984cd
commit
8fccdcd730
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ class Builder(ABC, Generic[ShapeT]):
|
|||
# by CPython in Linux, Window & MacOS but may not be supported in other python
|
||||
# implementations. Support outside of these OS's is outside the scope of this
|
||||
# project.
|
||||
builder_context = Builder._get_context()
|
||||
builder_context : Builder[ShapeT] | None = Builder._get_context()
|
||||
current_frame = inspect.currentframe()
|
||||
same_scope = (
|
||||
builder_context._python_frame == current_Frame.f_back
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue