onebusaway 1.15.5__py3-none-any.whl → 1.16.0__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.
@@ -16,6 +16,7 @@ from ._utils import (
16
16
  lru_cache,
17
17
  is_mapping,
18
18
  is_iterable,
19
+ is_sequence,
19
20
  )
20
21
  from .._files import is_base64_file_input
21
22
  from ._typing import (
@@ -24,6 +25,7 @@ from ._typing import (
24
25
  extract_type_arg,
25
26
  is_iterable_type,
26
27
  is_required_type,
28
+ is_sequence_type,
27
29
  is_annotated_type,
28
30
  strip_annotated_type,
29
31
  )
@@ -184,6 +186,8 @@ def _transform_recursive(
184
186
  (is_list_type(stripped_type) and is_list(data))
185
187
  # Iterable[T]
186
188
  or (is_iterable_type(stripped_type) and is_iterable(data) and not isinstance(data, str))
189
+ # Sequence[T]
190
+ or (is_sequence_type(stripped_type) and is_sequence(data) and not isinstance(data, str))
187
191
  ):
188
192
  # dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually
189
193
  # intended as an iterable, so we don't transform it.
@@ -346,6 +350,8 @@ async def _async_transform_recursive(
346
350
  (is_list_type(stripped_type) and is_list(data))
347
351
  # Iterable[T]
348
352
  or (is_iterable_type(stripped_type) and is_iterable(data) and not isinstance(data, str))
353
+ # Sequence[T]
354
+ or (is_sequence_type(stripped_type) and is_sequence(data) and not isinstance(data, str))
349
355
  ):
350
356
  # dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually
351
357
  # intended as an iterable, so we don't transform it.
onebusaway/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "onebusaway"
4
- __version__ = "1.15.5" # x-release-please-version
4
+ __version__ = "1.16.0" # x-release-please-version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: onebusaway
3
- Version: 1.15.5
3
+ Version: 1.16.0
4
4
  Summary: The official Python library for the onebusaway-sdk API
5
5
  Project-URL: Homepage, https://github.com/OneBusAway/python-sdk
6
6
  Project-URL: Repository, https://github.com/OneBusAway/python-sdk
@@ -11,7 +11,7 @@ onebusaway/_resource.py,sha256=t-CkWpnm2UyE1uiv87GODlyRcQ_8h5eXmSVoE-1u35w,1142
11
11
  onebusaway/_response.py,sha256=x_FC3ZoD8JnfQRtZibna0wxoBtNzKcVictes8B7N6NQ,28848
12
12
  onebusaway/_streaming.py,sha256=PC8tKxRCeoJn8xKBBxXTlppGSI4TOMYVNfxrabFkRfc,10128
13
13
  onebusaway/_types.py,sha256=uOBvSyMmZxhz550R58Pj4K5NhkwvEojBBuGzz962sKE,7300
14
- onebusaway/_version.py,sha256=hdK1fbcGxVZhhQod8oS7F97099beNocgrOyuxYLQHiE,163
14
+ onebusaway/_version.py,sha256=nMz6CP1vVdCfW7-bwWxvHJcSmSWaijKMpqvjXgDEXfY,163
15
15
  onebusaway/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  onebusaway/_utils/__init__.py,sha256=QMTNChOzCs5KF_NTxyb5XpFyyfmHiQASrFovz3dHmK8,2104
17
17
  onebusaway/_utils/_logs.py,sha256=tVIAhl7_vbQL4nJ8QdLAHJ0YzQYbW2gTATmjneY_JxI,790
@@ -20,7 +20,7 @@ onebusaway/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnm
20
20
  onebusaway/_utils/_resources_proxy.py,sha256=sHxSgZ5yyoWhnf-IrEYgRKCJcxzQKHrcR5UNy2iZIa4,609
21
21
  onebusaway/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
22
22
  onebusaway/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
23
- onebusaway/_utils/_transform.py,sha256=n7kskEWz6o__aoNvhFoGVyDoalNe6mJwp-g7BWkdj88,15617
23
+ onebusaway/_utils/_transform.py,sha256=Owrq-VLQMnGwPwOYHRLnnRTZTaGn1DJYSD2YROB23CU,15894
24
24
  onebusaway/_utils/_typing.py,sha256=UAoN7JEd8A-T32Cju-dL5EyqWKO_ktG4VDQ3KOhzqG0,4787
25
25
  onebusaway/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
26
26
  onebusaway/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
@@ -104,7 +104,7 @@ onebusaway/types/vehicles_for_agency_list_response.py,sha256=IUX2zHummRU2ChQsGYt
104
104
  onebusaway/types/shared/__init__.py,sha256=ui9M5r_ahasuyksUJVAHHYtdXvg3L_uxVgJY6LMdiPY,201
105
105
  onebusaway/types/shared/references.py,sha256=By29adWfDkZwH6_80NFuvP5NPKOcz9JUqUzaq-iAjQw,7317
106
106
  onebusaway/types/shared/response_wrapper.py,sha256=0i161M7PC8iPq2RzNt8DxZFlvSvdgD9xBcs0ugER0rY,331
107
- onebusaway-1.15.5.dist-info/METADATA,sha256=SaKLG9XqXV6cLa0fTw7-WBZQXKuvj7RBB97k9aHrrFI,13687
108
- onebusaway-1.15.5.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
109
- onebusaway-1.15.5.dist-info/licenses/LICENSE,sha256=czZkEz_7Kzvn7AGsFsY_RUYL132SXtB5Mcrjoq29Vfo,11344
110
- onebusaway-1.15.5.dist-info/RECORD,,
107
+ onebusaway-1.16.0.dist-info/METADATA,sha256=DqcFK6czlYdfNRZjlEvbi_vE4OzvB8pZtqdprCfGhAk,13687
108
+ onebusaway-1.16.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
109
+ onebusaway-1.16.0.dist-info/licenses/LICENSE,sha256=czZkEz_7Kzvn7AGsFsY_RUYL132SXtB5Mcrjoq29Vfo,11344
110
+ onebusaway-1.16.0.dist-info/RECORD,,