Skip to content

refactor: use None by default for height metadata#665

Merged
jansegre merged 1 commit intomasterfrom
refactor/use-none-height-metadata
Jun 14, 2023
Merged

refactor: use None by default for height metadata#665
jansegre merged 1 commit intomasterfrom
refactor/use-none-height-metadata

Conversation

@jansegre
Copy link
Member

Acceptance criteria

  • height metadata type should change from int to Optional[int]
  • initial value should go from 0 to None
  • any code accessing the height metadata directly should preferably use Block.get_height method (for both ensuring that the vertex in question is a block and asserting that it is not None)

@jansegre jansegre self-assigned this Jun 14, 2023
@jansegre jansegre requested a review from msbrogli as a code owner June 14, 2023 17:48
msbrogli
msbrogli previously approved these changes Jun 14, 2023
@jansegre jansegre force-pushed the refactor/use-none-height-metadata branch from 22c1228 to ff09836 Compare June 14, 2023 18:16
@jansegre jansegre merged commit fbc4f0a into master Jun 14, 2023
@jansegre jansegre deleted the refactor/use-none-height-metadata branch June 14, 2023 18:17
@jansegre jansegre mentioned this pull request Jul 12, 2023
2 tasks
This was referenced Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants