airportsdata 20240202__py3-none-any.whl → 20240309__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.
airportsdata/__init__.py CHANGED
@@ -11,7 +11,7 @@ from typing import Dict, Literal, TypedDict
11
11
 
12
12
  __project_name__ = __package__
13
13
  # Release numbering follows the release date
14
- __version__ = '20240202'
14
+ __version__ = '20240309'
15
15
  __min_python_version__ = (3, 9)
16
16
  __author__ = 'Mike Borsetti <mike@borsetti.com>'
17
17
  __copyright__ = 'Copyright 2020- Mike Borsetti'
@@ -47,7 +47,7 @@ def load(code_type: CodeType = 'ICAO') -> Dict[str, 'Airport']:
47
47
  :return: a dict of dicts, each entry having the following keys:
48
48
  'icao': ICAO 4-letter Location Indicator or 4-alphanumeric FAA/TC LID
49
49
  'iata': IATA 3-letter Location Code or an empty string
50
- 'name': Official name (latin script)
50
+ 'name': Official name (diacritized latin script)
51
51
  'city': City
52
52
  'subd': Subdivision (e.g. state, province, region, etc.)
53
53
  'country': ISO 3166-1 alpha 2-code (plus 'XK' for Kosovo)
@@ -100,6 +100,7 @@ def load_iata_macs() -> dict[str, IATAMAC]:
100
100
  airports = load('IATA')
101
101
  this_dir = Path(__file__).parent
102
102
  iata_macs: dict[str, IATAMAC] = {}
103
+ row_d: dict[str, str]
103
104
  with this_dir.joinpath('iata_macs.csv').open(encoding='utf8') as f:
104
105
  reader = csv.DictReader(f, quoting=csv.QUOTE_NONNUMERIC)
105
106
  for row_d in reader: