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

open up Mapped.__set__ for mypy 1.2 #253

Merged
merged 1 commit into from
Apr 17, 2023
Merged

open up Mapped.__set__ for mypy 1.2 #253

merged 1 commit into from
Apr 17, 2023

Conversation

zzzeek
Copy link
Member

@zzzeek zzzeek commented Apr 17, 2023

We are getting errors in 1.4 mypy due to the Mapped.set method being too specific in some way:

[classic@photon3 sqlalchemy:rel_1_4]$ PYTHONPATH=~/dev/sqlalchemy/lib/:~/dev/sqlalchemy2-stubs/ mypy test/ext/mypy/files/dataclasses_workaround.py
test/ext/mypy/files/dataclasses_workaround.py:34: error: Unsupported "__set__" in "Mapped"  [misc]
test/ext/mypy/files/dataclasses_workaround.py:35: error: Unsupported "__set__" in "Mapped"  [misc]
test/ext/mypy/files/dataclasses_workaround.py:36: error: Unsupported "__set__" in "Mapped"  [misc]
test/ext/mypy/files/dataclasses_workaround.py:37: error: Unsupported "__set__" in "Mapped"  [misc]
test/ext/mypy/files/dataclasses_workaround.py:38: error: Unsupported "__set__" in "Mapped"  [misc]
test/ext/mypy/files/dataclasses_workaround.py:59: error: Unsupported "__set__" in "Mapped"  [misc]
test/ext/mypy/files/dataclasses_workaround.py:60: error: Unsupported "__set__" in "Mapped"  [misc]
test/ext/mypy/files/dataclasses_workaround.py:61: error: Unsupported "__set__" in "Mapped"  [misc]
Found 8 errors in 1 file (checked 1 source file)

Open this up to avoid errors.

Description

Checklist

This pull request is:

  • A documentation / typographical error fix
    • Good to go, no issue or tests are needed
  • A short code fix
    • please include the issue number, and create an issue if none exists, which
      must include a complete example of the issue. one line code fixes without an
      issue and demonstration will not be accepted.
    • Please include: Fixes: #<issue number> in the commit message
    • please include tests. one line code fixes without tests will not be accepted.
  • A new feature implementation
    • please include the issue number, and create an issue if none exists, which must
      include a complete example of how the feature would look.
    • Please include: Fixes: #<issue number> in the commit message
    • please include tests.

Have a nice day!

We are getting errors in 1.4 mypy due to the Mapped.__set__ method
being too specific in some way:

    [classic@photon3 sqlalchemy:rel_1_4]$ PYTHONPATH=~/dev/sqlalchemy/lib/:~/dev/sqlalchemy2-stubs/ mypy test/ext/mypy/files/dataclasses_workaround.py
    test/ext/mypy/files/dataclasses_workaround.py:34: error: Unsupported "__set__" in "Mapped"  [misc]
    test/ext/mypy/files/dataclasses_workaround.py:35: error: Unsupported "__set__" in "Mapped"  [misc]
    test/ext/mypy/files/dataclasses_workaround.py:36: error: Unsupported "__set__" in "Mapped"  [misc]
    test/ext/mypy/files/dataclasses_workaround.py:37: error: Unsupported "__set__" in "Mapped"  [misc]
    test/ext/mypy/files/dataclasses_workaround.py:38: error: Unsupported "__set__" in "Mapped"  [misc]
    test/ext/mypy/files/dataclasses_workaround.py:59: error: Unsupported "__set__" in "Mapped"  [misc]
    test/ext/mypy/files/dataclasses_workaround.py:60: error: Unsupported "__set__" in "Mapped"  [misc]
    test/ext/mypy/files/dataclasses_workaround.py:61: error: Unsupported "__set__" in "Mapped"  [misc]
    Found 8 errors in 1 file (checked 1 source file)

Open this up to avoid errors.
@zzzeek zzzeek requested a review from CaselIT April 17, 2023 18:13
@CaselIT CaselIT merged commit 34e184f into main Apr 17, 2023
@CaselIT CaselIT deleted the open_up_mapped_set branch April 17, 2023 18:35
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.

None yet

2 participants