mirror of
https://github.com/gumyr/build123d.git
synced 2026-03-10 00:32:01 -07:00
Fix typechecking problems by using explicit variables
This commit is contained in:
parent
f7d15c5f15
commit
27c46d62fe
1 changed files with 4 additions and 2 deletions
|
|
@ -263,9 +263,11 @@ 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()
|
||||
current_frame = inspect.currentframe()
|
||||
same_scope = (
|
||||
Builder._get_context()._python_frame == inspect.currentframe().f_back
|
||||
if Builder._get_context()
|
||||
builder_context._python_frame == inspect.currentframe().f_back
|
||||
if builder_context and current_frame
|
||||
else False
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue