Skip to content

Conversation

@RasmusNygren
Copy link

Fixes #15193

@github-actions

This comment has been minimized.

@RasmusNygren RasmusNygren force-pushed the allow-default-keyword-for-environ branch from 8f62687 to e8d4cf7 Compare December 30, 2025 20:25
@github-actions
Copy link
Contributor

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

pyodide (https://github.com/pyodide/pyodide)
- pyodide-build/pyodide_build/xbuildenv_releases.py:220: error: No overload variant of "get" of "Mapping" matches argument types "str", "str"  [call-overload]
- pyodide-build/pyodide_build/xbuildenv_releases.py:220: note: Possible overload variants:
- pyodide-build/pyodide_build/xbuildenv_releases.py:220: note:     def get(self, str, /) -> str | None
- pyodide-build/pyodide_build/xbuildenv_releases.py:220: note:     def get(self, str, str, /) -> str
- pyodide-build/pyodide_build/xbuildenv_releases.py:220: note:     def [_T] get(self, str, _T, /) -> str | _T

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.

Allow default argument to be passed as keyword to os._Environ

1 participant