Skip to content

Conversation

@sobolevn
Copy link
Member

Let's see what will happen :)

@sobolevn
Copy link
Member Author

>>> import types
>>> types.SimpleNamespace
<class 'types.SimpleNamespace'>
>>> types.SimpleNamespace.__setattr__
<slot wrapper '__setattr__' of 'types.SimpleNamespace' objects>

__setattr__ errors seem a bit strange.

@hauntsaninja
Copy link
Collaborator

Maybe from python/mypy#18325

@github-actions

This comment has been minimized.

srittau added a commit to srittau/typeshed that referenced this pull request May 30, 2025
srittau added a commit to srittau/typeshed that referenced this pull request May 30, 2025
srittau added a commit to srittau/typeshed that referenced this pull request May 30, 2025
srittau added a commit to srittau/typeshed that referenced this pull request May 30, 2025
srittau added a commit to srittau/typeshed that referenced this pull request May 30, 2025
srittau added a commit to srittau/typeshed that referenced this pull request May 30, 2025
* Add a few `Self` return annotations.
* Add a few `# type: ignore[override]`.
* Add a few `@deprecated` annotations.

Should help with python#14194
srittau added a commit to srittau/typeshed that referenced this pull request May 30, 2025
@sobolevn
Copy link
Member Author

I don't have a capacity for this right now, sorry :(
Feel free to contunie / redo.

JelleZijlstra pushed a commit that referenced this pull request May 31, 2025
JelleZijlstra pushed a commit that referenced this pull request May 31, 2025
* Add a few `Self` return annotations.
* Add a few `# type: ignore[override]`.
* Add a few `@deprecated` annotations.

Should help with #14194
JelleZijlstra pushed a commit that referenced this pull request May 31, 2025
JelleZijlstra pushed a commit that referenced this pull request May 31, 2025
JelleZijlstra pushed a commit that referenced this pull request May 31, 2025
JelleZijlstra pushed a commit that referenced this pull request May 31, 2025
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2025

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Thanks everybody! Good to see so many false mypy/stubtest errors to go away.

@sobolevn
Copy link
Member Author

sobolevn commented Jun 1, 2025

Thanks, everyone! I was too tired to fix this all by myself, awesome to have such a helpful community :)

@AlexWaygood AlexWaygood merged commit eb495ff into main Jun 1, 2025
104 checks passed
@AlexWaygood AlexWaygood deleted the sobolevn-patch-2 branch June 1, 2025 16:40
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.

6 participants