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-39663: Use Type rather than type[BaseModel] for protocol #851

Merged
merged 1 commit into from Jun 14, 2023

Conversation

timj
Copy link
Member

@timj timj commented Jun 14, 2023

The "modern" version of the type confuses mypy, resulting in messages such as:

python/lsst/pipe/base/graph/graph.py:1068: error: Invalid self argument "DatasetRef"  to attribute function "to_json" with type "Callable[[SupportsSimple, bool], str]"  [misc]

when using ref.to_json().

Checklist

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

The "modern" version of the type confuses mypy, resulting
in messages such as:

python/lsst/pipe/base/graph/graph.py:1068: error: Invalid self argument "DatasetRef"
    to attribute function "to_json" with type "Callable[[SupportsSimple, bool], str]"  [misc]

when using `ref.to_json()`.
@timj timj requested a review from TallJimbo June 14, 2023 20:52
@timj timj merged commit a67c57d into main Jun 14, 2023
11 checks passed
@timj timj deleted the tickets/DM-39663 branch June 14, 2023 21:11
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