Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add __setattr__ to logging.LogRecord #8064

Merged
merged 2 commits into from
Jun 12, 2022
Merged

Add __setattr__ to logging.LogRecord #8064

merged 2 commits into from
Jun 12, 2022

Conversation

AlexWaygood
Copy link
Member

Fixes #7833

@github-actions
Copy link
Contributor

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

sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/util/logging.py:80: error: Unused "type: ignore" comment
+ sphinx/util/logging.py:434: error: Unused "type: ignore" comment

@JelleZijlstra JelleZijlstra merged commit 1aa5663 into master Jun 12, 2022
@JelleZijlstra JelleZijlstra deleted the logrecord branch June 12, 2022 19:04
DMRobertson pushed a commit to matrix-org/synapse that referenced this pull request Aug 12, 2022
DMRobertson pushed a commit to matrix-org/synapse that referenced this pull request Aug 12, 2022
DMRobertson pushed a commit to matrix-org/synapse that referenced this pull request Aug 12, 2022
DMRobertson pushed a commit to matrix-org/synapse that referenced this pull request Sep 28, 2022
Presumably python/typeshed#8064 makes this ok

Cherry-picked from #13521
DMRobertson pushed a commit to matrix-org/synapse that referenced this pull request Sep 30, 2022
Presumably python/typeshed#8064 makes this ok

Cherry-picked from #13521
DMRobertson pushed a commit to matrix-org/synapse that referenced this pull request Sep 30, 2022
* Update mypy and mypy-zope

* Unignore assigning to LogRecord attributes

Presumably python/typeshed#8064 makes this ok

Cherry-picked from #13521

* Remove unused ignores due to mypy ParamSpec fixes

python/mypy#12668

Cherry-picked from #13521

* Remove additional unused ignores

* Fix new mypy complaints related to `assertGreater`

Presumably due to python/typeshed#8077

* Changelog

* Reword changelog

Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>

Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
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.

Documented pattern for adding contextual information to LogRecord objects fails type checking
2 participants