Skip to content

Conversation

@tungol
Copy link
Contributor

@tungol tungol commented Dec 14, 2024

I think that #6676 showed that Paramspec didn't work, but that wasn't actually the fault of _GeneratorContextManagerBase.

We'll see what mypy-primer has to say about it.

I think that python#6676 showed that Paramspec didn't work, but that
wasn't actually the fault of _GeneratorContextManagerBase.
@tungol tungol force-pushed the _GeneratorContextManagerBase branch from b4acb0e to bf795a1 Compare December 14, 2024 03:11
@tungol tungol marked this pull request as draft December 14, 2024 03:12
@tungol tungol closed this Dec 14, 2024
@github-actions

This comment has been minimized.

@tungol tungol reopened this Dec 14, 2024
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@tungol tungol marked this pull request as ready for review December 14, 2024 05:23
@github-actions

This comment has been minimized.

@tungol
Copy link
Contributor Author

tungol commented Dec 14, 2024

Ah, well, that's no good then.

@tungol tungol force-pushed the _GeneratorContextManagerBase branch from ca85887 to 01ee3d5 Compare December 14, 2024 07:19
@github-actions

This comment has been minimized.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

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

pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], tuple[Any, ...], dict[str, Any]], None]")  [assignment]
+ pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManagerBase[_G], Callable[..., _G], tuple[Any, ...], dict[str, Any]], None]")  [assignment]
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], tuple[Any, ...], dict[str, Any]], None]")  [assignment]
+ pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManagerBase[_G], Callable[..., _G], tuple[Any, ...], dict[str, Any]], None]")  [assignment]

@JelleZijlstra JelleZijlstra merged commit 43f637b into python:main Dec 28, 2024
63 checks passed
@tungol tungol deleted the _GeneratorContextManagerBase branch December 28, 2024 04:50
@cdce8p cdce8p mentioned this pull request Jan 1, 2025
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