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

Make id fields non-optional but retain auto-numbering #31

Merged
merged 1 commit into from
Aug 7, 2020

Conversation

jmuhlich
Copy link
Collaborator

@jmuhlich jmuhlich commented Aug 7, 2020

The id fields are no longer typed as Optional, but non-reference types can
still be constructed with the new auto-numbering and integer upgrade logic.
Reference types must always be constructed with a valid ID string.

Fixes #30

The id fields are no longer typed as Optional, but non-reference types can
still be constructed with the new auto-numbering and integer upgrade logic.
Reference types must always be constructed with a valid ID string.
@jmuhlich jmuhlich requested a review from tlambert03 August 7, 2020 17:16
@codecov-commenter
Copy link

codecov-commenter commented Aug 7, 2020

Codecov Report

Merging #31 into master will decrease coverage by 0.08%.
The diff coverage is 97.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
- Coverage   95.20%   95.12%   -0.09%     
==========================================
  Files           1        1              
  Lines         396      451      +55     
==========================================
+ Hits          377      429      +52     
- Misses         19       22       +3     
Impacted Files Coverage Δ
src/ome_autogen.py 95.12% <97.85%> (-0.09%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 148954b...dc3d13b. Read the comment docs.

Copy link
Owner

@tlambert03 tlambert03 left a comment

Choose a reason for hiding this comment

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

lovely!

@jmuhlich jmuhlich merged commit 6a8bd57 into tlambert03:master Aug 7, 2020
@jmuhlich jmuhlich deleted the ids-default branch August 7, 2020 19:27
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.

IDs should be required, with default or default_factory
3 participants