Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Typecheck some API interfaces #593
Typecheck some API interfaces #593
Changes from 16 commits
19e2e99
4cc2eb9
041c5ba
a43a25e
3fc95f1
b9c77e8
da851aa
2da7a0b
c8ba01a
27f4641
181099f
e6e7fe2
0440fa9
df78ca2
ee70196
434c28a
a36d17c
a8996d1
dfe4c09
fddf23a
e155a9b
51b3492
7f60849
4cb5956
7a423a8
6a4acd9
e41aed0
81d60dd
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might have the syntax wrong. In some cases we specify the type from
types.py
, and in others fromAPIformatting.py
(e.g. inquery.py
).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dict[Never, Never]
means an empty dict, and this change doesn't pass type checking. In what case wouldreqparams={}
be passed?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was simply adding a type for subsetparams, since it wasn't specified. It sounds like it would need to be something more like
Optional[EGIRequiredParamsSubset]
so it doesn't otherwise require an empty dict.dict[Never, Never]
is not being specified as a valid type toreqparams
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woops, I meant
subsetparams
:)Check warning on line 372 in icepyx/core/granules.py
Codecov / codecov/patch
icepyx/core/granules.py#L372
Check warning on line 415 in icepyx/core/granules.py
Codecov / codecov/patch
icepyx/core/granules.py#L415
Check warning on line 444 in icepyx/core/granules.py
Codecov / codecov/patch
icepyx/core/granules.py#L444
Check warning on line 1011 in icepyx/core/query.py
Codecov / codecov/patch
icepyx/core/query.py#L1011
Check warning on line 1145 in icepyx/core/query.py
Codecov / codecov/patch
icepyx/core/query.py#L1145
Check warning on line 1149 in icepyx/core/query.py
Codecov / codecov/patch
icepyx/core/query.py#L1149
Check warning on line 1152 in icepyx/core/query.py
Codecov / codecov/patch
icepyx/core/query.py#L1152