Skip to content

Recursively evaluate TYPE_CHECKING blocks, fix #648#649

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

Recursively evaluate TYPE_CHECKING blocks, fix #648#649
mhils merged 8 commits intomitmproxy:mainfrom
mhils:type-checking

Conversation

@mhils
Copy link
Copy Markdown
Member

@mhils mhils commented Dec 13, 2023

/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

Copy link
Copy Markdown

@woodruffw woodruffw left a comment

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
Copy link
Copy Markdown
Member Author

mhils commented Dec 13, 2023

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