obographs 0.0.4__tar.gz → 0.0.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: obographs
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: A python data model for OBO Graphs
5
5
  Keywords: snekpack,cookiecutter
6
6
  Author: Charles Tapley Hoyt
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "obographs"
7
- version = "0.0.4"
7
+ version = "0.0.5"
8
8
  description = "A python data model for OBO Graphs"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -232,7 +232,7 @@ known-first-party = [
232
232
  docstring-code-format = true
233
233
 
234
234
  [tool.bumpversion]
235
- current_version = "0.0.4"
235
+ current_version = "0.0.5"
236
236
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(?:-(?P<release>[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+(?P<build>[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?"
237
237
  serialize = [
238
238
  "{major}.{minor}.{patch}-{release}+{build}",
@@ -203,7 +203,7 @@ class StandardizedSynonym(StandardizedBaseModel[Synonym]):
203
203
  class StandardizedMeta(StandardizedBaseModel[Meta]):
204
204
  """A standardized meta object."""
205
205
 
206
- definition: StandardizedDefinition | None
206
+ definition: StandardizedDefinition | None = None
207
207
  subsets: list[Reference] | None = None
208
208
  xrefs: list[StandardizedXref] | None = None
209
209
  synonyms: list[StandardizedSynonym] | None = None
@@ -261,7 +261,9 @@ class StandardizedMeta(StandardizedBaseModel[Meta]):
261
261
  return cls(
262
262
  definition=StandardizedDefinition.from_obograph_raw(
263
263
  meta.definition, converter, strict=strict
264
- ),
264
+ )
265
+ if meta.definition is not None
266
+ else None,
265
267
  subsets=[
266
268
  _curie_or_uri_to_ref(subset, converter, strict=strict) for subset in meta.subsets
267
269
  ]
@@ -12,7 +12,7 @@ __all__ = [
12
12
  "get_version",
13
13
  ]
14
14
 
15
- VERSION = "0.0.4"
15
+ VERSION = "0.0.5"
16
16
 
17
17
 
18
18
  def get_git_hash() -> str:
File without changes
File without changes