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

DM-42190: Fix mypy no-implicit-reexport compatibility #79

Merged
merged 1 commit into from Jan 22, 2024

Conversation

dhirving
Copy link
Contributor

@dhirving dhirving commented Jan 19, 2024

SQRE repositories have their mypy configured with no-implicit-reexport enabled, which prevents you from using symbols imported by name into a module from another module unless they are listed in __all__.

Before this change, mypy would fail with an attr-defined error if you tried to from lsst.resources import ResourcePath.

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

Copy link

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4a90131) 86.52% compared to head (9668c19) 86.53%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #79   +/-   ##
=======================================
  Coverage   86.52%   86.53%           
=======================================
  Files          27       27           
  Lines        4201     4202    +1     
  Branches      850      850           
=======================================
+ Hits         3635     3636    +1     
  Misses        445      445           
  Partials      121      121           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

SQRE repositories have their mypy configured with `no-implicit-reexport` enabled, which prevents you from using symbols imported by name into a module from another module unless they are listed in __all__.

Before this change, mypy would fail with an `attr-defined` error if you tried to `from lsst.resources import ResourcePath`.
@dhirving dhirving merged commit 72166a0 into main Jan 22, 2024
17 checks passed
@dhirving dhirving deleted the tickets/DM-42190 branch January 22, 2024 16:29
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