Skip to content

mypy: fix all assignment#368

Open
Avasam wants to merge 2 commits into
pypa:mainfrom
Avasam:mypy--fix-all-assignment
Open

mypy: fix all assignment#368
Avasam wants to merge 2 commits into
pypa:mainfrom
Avasam:mypy--fix-all-assignment

Conversation

@Avasam

@Avasam Avasam commented May 4, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@Avasam Avasam force-pushed the mypy--fix-all-assignment branch 2 times, most recently from 246817b to e14b212 Compare May 4, 2025 17:10
@Avasam Avasam force-pushed the mypy--fix-all-assignment branch from e14b212 to ca326ca Compare October 17, 2025 15:42
Comment thread distutils/fancy_getopt.py
if value and self.repeat.get(attr) is not None:
value = getattr(object, attr, 0) + 1
setattr(object, attr, value)
self.option_order.append((opt, value))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread distutils/sysconfig.py Outdated
@Avasam Avasam force-pushed the mypy--fix-all-assignment branch from ca326ca to d4fdab6 Compare November 2, 2025 16:42
@Avasam Avasam mentioned this pull request Nov 2, 2025

# Medium-easy stuff: same syntax/semantics, different names.
ext.runtime_library_dirs = build_info.get('rpath')
ext.runtime_library_dirs = build_info.get('rpath') or []

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Runtime change: avoid assigning None to runtime_library_dirs (I didn't fully investigate whether that should even be possible at runtime or just an artefact of code that is too dynamic to be type-safe)

@Avasam Avasam force-pushed the mypy--fix-all-assignment branch 2 times, most recently from 86f20fd to f3d74f2 Compare July 5, 2026 15:09
@Avasam Avasam force-pushed the mypy--fix-all-assignment branch from f3d74f2 to 54592ba Compare July 5, 2026 15:20
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.

1 participant