Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vthemelis
Copy link
Contributor

pmap should prefer inferring the type from Mapping[K,V] if the argument matches both that and Iterable[K,V] for different K, V.

Added a type-level test to assert this on a specific counter example.

`pmap` should prefer inferring the type from Mapping[K,V] if the
argument matches both that and Iterable[K,V] for different K, V.

Added a type-level test to assert this on a specific counter example.
@vthemelis
Copy link
Contributor Author

Note that I don't think that this project has type-checking enabled so my test is kinda pointless. Would you like me to add a type checker to the CI? Perhaps just checking this particular test file?

@tobgu
Copy link
Owner

tobgu commented Sep 25, 2025

Hi!

Trying to add type tests sound like a great idea! There will likely be issues initially so constraining it to this file may be a good start. If you don't want to take on the rest. :-)

@vthemelis
Copy link
Contributor Author

Hi @tobgu ,

I added #308 which adds pyright to tox and type ignores for everything that's wrong at the moment. These can incrementally be removed.

Lmk if this is not the route you'd rather take.

@tobgu tobgu merged commit 4c95b35 into tobgu:master Oct 12, 2025
5 checks passed
@vthemelis
Copy link
Contributor Author

Thanks @tobgu !

@vthemelis
Copy link
Contributor Author

Hi @tobgu, could I get a release of this?

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