Skip to content

configparser: remove unnecessary defaults from overloads#15641

Merged
JelleZijlstra merged 1 commit intopython:mainfrom
JelleZijlstra:configparser-defaults
Apr 11, 2026
Merged

configparser: remove unnecessary defaults from overloads#15641
JelleZijlstra merged 1 commit intopython:mainfrom
JelleZijlstra:configparser-defaults

Conversation

@JelleZijlstra
Copy link
Copy Markdown
Member

These overloads differ from the other overloads only in the presence
of the fallback parameter. If the parameter is not passed, the other
overload should be taken, so fallback should be made required on
these overloads for clarity.

These overloads differ from the other overloads only in the presence
of the `fallback` parameter. If the parameter is not passed, the other
overload should be taken, so `fallback` should be made required on
these overloads for clarity.
@github-actions
Copy link
Copy Markdown
Contributor

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

pandas (https://github.com/pandas-dev/pandas)
- pandas/core/computation/ops.py:328: error: Need type annotation for "_binary_ops_dict" (hint: "_binary_ops_dict: dict[<type>, <type>] = ...")  [var-annotated]

@JelleZijlstra JelleZijlstra merged commit 46b01bf into python:main Apr 11, 2026
51 checks passed
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