bioregistry 0.13.15__py3-none-any.whl → 0.13.17__py3-none-any.whl

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.
bioregistry/app/impl.py CHANGED
@@ -68,7 +68,7 @@ BIOREGISTRY_FOOTER_DEFAULT = dedent(f"""\
68
68
 
69
69
  <p class="small text-center text-muted">
70
70
  Developed with ❤️ by the
71
- <a href="https://www.iac.rwth-aachen.de">Institute for Inorganic Chemistry</a> at RWTH Aachen University
71
+ <a href="https://www.iac.rwth-aachen.de">Institute of Inorganic Chemistry</a> at RWTH Aachen University
72
72
  </br> and the
73
73
  <a href="https://gyorilab.github.io">Gyori Lab for Computational Biomedicine</a>
74
74
  at Northeastern University.<br/>
@@ -19,7 +19,6 @@ from __future__ import annotations
19
19
 
20
20
  import sys
21
21
  from collections import defaultdict
22
- from collections.abc import Mapping
23
22
  from typing import Any
24
23
 
25
24
  import click
@@ -32,7 +31,7 @@ from bioregistry.utils import norm
32
31
  NESTED = {"contact", "contributor"}
33
32
 
34
33
 
35
- def _resource_from_row(row: Mapping[str, Any]) -> Resource:
34
+ def _resource_from_row(row: dict[str, Any]) -> Resource:
36
35
  kwargs = {}
37
36
  nested: defaultdict[str, dict[str, str]] = defaultdict(dict)
38
37
  for key, value in row.items():
@@ -60,7 +59,7 @@ def _resource_from_row(row: Mapping[str, Any]) -> Resource:
60
59
 
61
60
  def _bulk_import_df(df: pd.DataFrame) -> None:
62
61
  for _, row in df.iterrows():
63
- resource = _resource_from_row(row.to_dict())
62
+ resource = _resource_from_row(row.to_dict()) # type:ignore[arg-type]
64
63
  try:
65
64
  add_resource(resource)
66
65
  except KeyError as e: