Skip to content

Commit

Permalink
Lib/typing.py seems to only be the case for Windows 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandera committed Jun 2, 2023
1 parent 3ff4f05 commit c81b1d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generalimport/generalimport_bottom.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def _get_previous_frame_filename(depth):
def _inside_typing():
frame = sys._getframe(0)
while frame:
filename = frame.f_code.co_filename.replace("\\", "/")
if r"Lib/typing.py" in filename:
filename = frame.f_code.co_filename.replace("\\", "/").lower()
if r"lib/typing.py" in filename:
return True
frame = frame.f_back
return False
Expand Down

0 comments on commit c81b1d2

Please sign in to comment.