Skip to content

[daemon] Fix return type change to optional in generic function#16342

Merged
JukkaL merged 1 commit intomasterfrom
fix-daemon-optional-return-type
Oct 27, 2023
Merged

[daemon] Fix return type change to optional in generic function#16342
JukkaL merged 1 commit intomasterfrom
fix-daemon-optional-return-type

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented Oct 27, 2023

Previously changing a return type to an optional type was not propagated at least in some cases, since astdiff could simplify away the optional type.

Previously changing a return type to an optional type was not propagated
at least in some cases, since astdiff could simplify away the optional
type.
@github-actions
Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

discord.py (https://github.com/Rapptz/discord.py): typechecking got 1.10x faster (137.4s -> 125.1s)
(Performance measurements are based on a single noisy sample)

@JukkaL JukkaL merged commit 5ef9c82 into master Oct 27, 2023
@JukkaL JukkaL deleted the fix-daemon-optional-return-type branch October 27, 2023 15:25
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