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

Use literals instead of str for Mode typing and typing-extensions added as a direct requirement #1586

Merged
merged 6 commits into from Dec 5, 2023

Conversation

Raalsky
Copy link
Contributor

@Raalsky Raalsky commented Dec 5, 2023

Summary

Remember to adjust conda requirements as well after release.


Before submitting checklist

  • Did you update the CHANGELOG? (not for test updates, internal changes/refactors or CI/CD setup)
  • Did you ask the docs owner to review all the user-facing changes?

Copy link

codecov bot commented Dec 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e8f4e73) 79.92% compared to head (15cb94d) 76.46%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1586      +/-   ##
==========================================
- Coverage   79.92%   76.46%   -3.46%     
==========================================
  Files         292      292              
  Lines       14540    14544       +4     
==========================================
- Hits        11621    11121     -500     
- Misses       2919     3423     +504     
Flag Coverage Δ
e2e-management ?
e2e-s3 ?
e2e-s3-gcs ?
e2e-standard ?
macos 73.51% <100.00%> (-6.15%) ⬇️
py3.7 73.81% <100.00%> (-5.60%) ⬇️
py3.9 ?
ubuntu 73.67% <100.00%> (-6.05%) ⬇️
unit 73.81% <100.00%> (-0.55%) ⬇️
windows 72.99% <100.00%> (-6.69%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@Raalsky Raalsky changed the title Use literals instead of str for Mode typing Use literals instead of str for Mode typing and typing-extensions added as a direct requirement Dec 5, 2023
@@ -309,7 +311,7 @@ def __init__(
project: Optional[str] = None,
api_token: Optional[str] = None,
custom_run_id: Optional[str] = None,
mode: Optional[str] = None,
mode: Optional[Literal["async", "sync", "offline", "read-only", "debug"]] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Raalsky Can you elaborate on the removal of offline from the other places?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's never been supported except for Runs

Copy link
Contributor Author

@Raalsky Raalsky Dec 5, 2023

Choose a reason for hiding this comment

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

You can take a look at:

raise NeptuneException("Project can't be initialized in OFFLINE mode")
There is an exception about it. Probably we should adjust the docs as well.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thankfully it's correct in the docs, I just had a mind glitch. (We don't explicitly say "for runs only" where offline mode is described, so it may not hurt to clarify it there.)

@Raalsky Raalsky merged commit 7bc211d into master Dec 5, 2023
4 checks passed
@Raalsky Raalsky deleted the rj/mode-literal branch December 5, 2023 12:43
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.

NPT-13271: neptune does not restrict the version of the dependency typing_extensions
3 participants