Skip to content

Recursively evaluate TYPE_CHECKING blocks, fix #648 - #649

Merged
mhils merged 8 commits into
mitmproxy:mainfrom
mhils:type-checking
Dec 13, 2023
Merged

mhils merged 8 commits into
mitmproxy:mainfrom
mhils:type-checking

Conversation

@mhils

@mhils mhils commented Dec 13, 2023

Copy link
Copy Markdown
Member

/CC @woodruffw - could you verify that this fixes things beyond the MRE? :)

@woodruffw

Copy link
Copy Markdown

/CC @woodruffw - could you verify that this fixes things beyond the MRE? :)

Trying it now!

@woodruffw

Copy link
Copy Markdown

Confirmed! The following produced no warnings:

pip install https://github.com/mhils/pdoc/archive/type-checking.zip
pdoc my_module

@woodruffw woodruffw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for identifying and fixing this so quickly!

@mhils
mhils merged commit 281ee74 into mitmproxy:main Dec 13, 2023
@mhils
mhils deleted the type-checking branch December 13, 2023 20:39
@mhils

mhils commented Dec 13, 2023

Copy link
Copy Markdown
Member Author

Awesome, thanks! pdoc 14.2 will be out in a few minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants