Skip to content

Commit 3238fb0

Browse files
chore: fix typos (#722)
1 parent 9fc1c59 commit 3238fb0

File tree

3 files changed

+38
-38
lines changed

3 files changed

+38
-38
lines changed

src/lithic/_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ def set_pydantic_config(typ: Any, config: pydantic.ConfigDict) -> None:
681681
setattr(typ, "__pydantic_config__", config) # noqa: B010
682682

683683

684-
# our use of subclasssing here causes weirdness for type checkers,
684+
# our use of subclassing here causes weirdness for type checkers,
685685
# so we just pretend that we don't subclass
686686
if TYPE_CHECKING:
687687
GenericModel = BaseModel

src/lithic/_utils/_transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _get_annotated_type(type_: type) -> type | None:
126126
def _maybe_transform_key(key: str, type_: type) -> str:
127127
"""Transform the given `data` based on the annotations provided in `type_`.
128128
129-
Note: this function only looks at `Annotated` types that contain `PropertInfo` metadata.
129+
Note: this function only looks at `Annotated` types that contain `PropertyInfo` metadata.
130130
"""
131131
annotated_type = _get_annotated_type(type_)
132132
if annotated_type is None:

tests/api_resources/events/test_subscriptions.py

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,15 @@ def test_streaming_response_list(self, client: Lithic) -> None:
192192

193193
assert cast(Any, response.is_closed) is True
194194

195-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
195+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
196196
@parametrize
197197
def test_method_delete(self, client: Lithic) -> None:
198198
subscription = client.events.subscriptions.delete(
199199
"event_subscription_token",
200200
)
201201
assert subscription is None
202202

203-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
203+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
204204
@parametrize
205205
def test_raw_response_delete(self, client: Lithic) -> None:
206206
response = client.events.subscriptions.with_raw_response.delete(
@@ -212,7 +212,7 @@ def test_raw_response_delete(self, client: Lithic) -> None:
212212
subscription = response.parse()
213213
assert subscription is None
214214

215-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
215+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
216216
@parametrize
217217
def test_streaming_response_delete(self, client: Lithic) -> None:
218218
with client.events.subscriptions.with_streaming_response.delete(
@@ -226,7 +226,7 @@ def test_streaming_response_delete(self, client: Lithic) -> None:
226226

227227
assert cast(Any, response.is_closed) is True
228228

229-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
229+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
230230
@parametrize
231231
def test_path_params_delete(self, client: Lithic) -> None:
232232
with pytest.raises(
@@ -289,15 +289,15 @@ def test_path_params_list_attempts(self, client: Lithic) -> None:
289289
event_subscription_token="",
290290
)
291291

292-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
292+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
293293
@parametrize
294294
def test_method_recover(self, client: Lithic) -> None:
295295
subscription = client.events.subscriptions.recover(
296296
event_subscription_token="event_subscription_token",
297297
)
298298
assert subscription is None
299299

300-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
300+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
301301
@parametrize
302302
def test_method_recover_with_all_params(self, client: Lithic) -> None:
303303
subscription = client.events.subscriptions.recover(
@@ -307,7 +307,7 @@ def test_method_recover_with_all_params(self, client: Lithic) -> None:
307307
)
308308
assert subscription is None
309309

310-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
310+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
311311
@parametrize
312312
def test_raw_response_recover(self, client: Lithic) -> None:
313313
response = client.events.subscriptions.with_raw_response.recover(
@@ -319,7 +319,7 @@ def test_raw_response_recover(self, client: Lithic) -> None:
319319
subscription = response.parse()
320320
assert subscription is None
321321

322-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
322+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
323323
@parametrize
324324
def test_streaming_response_recover(self, client: Lithic) -> None:
325325
with client.events.subscriptions.with_streaming_response.recover(
@@ -333,7 +333,7 @@ def test_streaming_response_recover(self, client: Lithic) -> None:
333333

334334
assert cast(Any, response.is_closed) is True
335335

336-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
336+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
337337
@parametrize
338338
def test_path_params_recover(self, client: Lithic) -> None:
339339
with pytest.raises(
@@ -343,15 +343,15 @@ def test_path_params_recover(self, client: Lithic) -> None:
343343
event_subscription_token="",
344344
)
345345

346-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
346+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
347347
@parametrize
348348
def test_method_replay_missing(self, client: Lithic) -> None:
349349
subscription = client.events.subscriptions.replay_missing(
350350
event_subscription_token="event_subscription_token",
351351
)
352352
assert subscription is None
353353

354-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
354+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
355355
@parametrize
356356
def test_method_replay_missing_with_all_params(self, client: Lithic) -> None:
357357
subscription = client.events.subscriptions.replay_missing(
@@ -361,7 +361,7 @@ def test_method_replay_missing_with_all_params(self, client: Lithic) -> None:
361361
)
362362
assert subscription is None
363363

364-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
364+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
365365
@parametrize
366366
def test_raw_response_replay_missing(self, client: Lithic) -> None:
367367
response = client.events.subscriptions.with_raw_response.replay_missing(
@@ -373,7 +373,7 @@ def test_raw_response_replay_missing(self, client: Lithic) -> None:
373373
subscription = response.parse()
374374
assert subscription is None
375375

376-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
376+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
377377
@parametrize
378378
def test_streaming_response_replay_missing(self, client: Lithic) -> None:
379379
with client.events.subscriptions.with_streaming_response.replay_missing(
@@ -387,7 +387,7 @@ def test_streaming_response_replay_missing(self, client: Lithic) -> None:
387387

388388
assert cast(Any, response.is_closed) is True
389389

390-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
390+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
391391
@parametrize
392392
def test_path_params_replay_missing(self, client: Lithic) -> None:
393393
with pytest.raises(
@@ -437,15 +437,15 @@ def test_path_params_retrieve_secret(self, client: Lithic) -> None:
437437
"",
438438
)
439439

440-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
440+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
441441
@parametrize
442442
def test_method_rotate_secret(self, client: Lithic) -> None:
443443
subscription = client.events.subscriptions.rotate_secret(
444444
"event_subscription_token",
445445
)
446446
assert subscription is None
447447

448-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
448+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
449449
@parametrize
450450
def test_raw_response_rotate_secret(self, client: Lithic) -> None:
451451
response = client.events.subscriptions.with_raw_response.rotate_secret(
@@ -457,7 +457,7 @@ def test_raw_response_rotate_secret(self, client: Lithic) -> None:
457457
subscription = response.parse()
458458
assert subscription is None
459459

460-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
460+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
461461
@parametrize
462462
def test_streaming_response_rotate_secret(self, client: Lithic) -> None:
463463
with client.events.subscriptions.with_streaming_response.rotate_secret(
@@ -471,7 +471,7 @@ def test_streaming_response_rotate_secret(self, client: Lithic) -> None:
471471

472472
assert cast(Any, response.is_closed) is True
473473

474-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
474+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
475475
@parametrize
476476
def test_path_params_rotate_secret(self, client: Lithic) -> None:
477477
with pytest.raises(
@@ -703,15 +703,15 @@ async def test_streaming_response_list(self, async_client: AsyncLithic) -> None:
703703

704704
assert cast(Any, response.is_closed) is True
705705

706-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
706+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
707707
@parametrize
708708
async def test_method_delete(self, async_client: AsyncLithic) -> None:
709709
subscription = await async_client.events.subscriptions.delete(
710710
"event_subscription_token",
711711
)
712712
assert subscription is None
713713

714-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
714+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
715715
@parametrize
716716
async def test_raw_response_delete(self, async_client: AsyncLithic) -> None:
717717
response = await async_client.events.subscriptions.with_raw_response.delete(
@@ -723,7 +723,7 @@ async def test_raw_response_delete(self, async_client: AsyncLithic) -> None:
723723
subscription = response.parse()
724724
assert subscription is None
725725

726-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
726+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
727727
@parametrize
728728
async def test_streaming_response_delete(self, async_client: AsyncLithic) -> None:
729729
async with async_client.events.subscriptions.with_streaming_response.delete(
@@ -737,7 +737,7 @@ async def test_streaming_response_delete(self, async_client: AsyncLithic) -> Non
737737

738738
assert cast(Any, response.is_closed) is True
739739

740-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
740+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
741741
@parametrize
742742
async def test_path_params_delete(self, async_client: AsyncLithic) -> None:
743743
with pytest.raises(
@@ -800,15 +800,15 @@ async def test_path_params_list_attempts(self, async_client: AsyncLithic) -> Non
800800
event_subscription_token="",
801801
)
802802

803-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
803+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
804804
@parametrize
805805
async def test_method_recover(self, async_client: AsyncLithic) -> None:
806806
subscription = await async_client.events.subscriptions.recover(
807807
event_subscription_token="event_subscription_token",
808808
)
809809
assert subscription is None
810810

811-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
811+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
812812
@parametrize
813813
async def test_method_recover_with_all_params(self, async_client: AsyncLithic) -> None:
814814
subscription = await async_client.events.subscriptions.recover(
@@ -818,7 +818,7 @@ async def test_method_recover_with_all_params(self, async_client: AsyncLithic) -
818818
)
819819
assert subscription is None
820820

821-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
821+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
822822
@parametrize
823823
async def test_raw_response_recover(self, async_client: AsyncLithic) -> None:
824824
response = await async_client.events.subscriptions.with_raw_response.recover(
@@ -830,7 +830,7 @@ async def test_raw_response_recover(self, async_client: AsyncLithic) -> None:
830830
subscription = response.parse()
831831
assert subscription is None
832832

833-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
833+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
834834
@parametrize
835835
async def test_streaming_response_recover(self, async_client: AsyncLithic) -> None:
836836
async with async_client.events.subscriptions.with_streaming_response.recover(
@@ -844,7 +844,7 @@ async def test_streaming_response_recover(self, async_client: AsyncLithic) -> No
844844

845845
assert cast(Any, response.is_closed) is True
846846

847-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
847+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
848848
@parametrize
849849
async def test_path_params_recover(self, async_client: AsyncLithic) -> None:
850850
with pytest.raises(
@@ -854,15 +854,15 @@ async def test_path_params_recover(self, async_client: AsyncLithic) -> None:
854854
event_subscription_token="",
855855
)
856856

857-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
857+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
858858
@parametrize
859859
async def test_method_replay_missing(self, async_client: AsyncLithic) -> None:
860860
subscription = await async_client.events.subscriptions.replay_missing(
861861
event_subscription_token="event_subscription_token",
862862
)
863863
assert subscription is None
864864

865-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
865+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
866866
@parametrize
867867
async def test_method_replay_missing_with_all_params(self, async_client: AsyncLithic) -> None:
868868
subscription = await async_client.events.subscriptions.replay_missing(
@@ -872,7 +872,7 @@ async def test_method_replay_missing_with_all_params(self, async_client: AsyncLi
872872
)
873873
assert subscription is None
874874

875-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
875+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
876876
@parametrize
877877
async def test_raw_response_replay_missing(self, async_client: AsyncLithic) -> None:
878878
response = await async_client.events.subscriptions.with_raw_response.replay_missing(
@@ -884,7 +884,7 @@ async def test_raw_response_replay_missing(self, async_client: AsyncLithic) -> N
884884
subscription = response.parse()
885885
assert subscription is None
886886

887-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
887+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
888888
@parametrize
889889
async def test_streaming_response_replay_missing(self, async_client: AsyncLithic) -> None:
890890
async with async_client.events.subscriptions.with_streaming_response.replay_missing(
@@ -898,7 +898,7 @@ async def test_streaming_response_replay_missing(self, async_client: AsyncLithic
898898

899899
assert cast(Any, response.is_closed) is True
900900

901-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
901+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
902902
@parametrize
903903
async def test_path_params_replay_missing(self, async_client: AsyncLithic) -> None:
904904
with pytest.raises(
@@ -948,15 +948,15 @@ async def test_path_params_retrieve_secret(self, async_client: AsyncLithic) -> N
948948
"",
949949
)
950950

951-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
951+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
952952
@parametrize
953953
async def test_method_rotate_secret(self, async_client: AsyncLithic) -> None:
954954
subscription = await async_client.events.subscriptions.rotate_secret(
955955
"event_subscription_token",
956956
)
957957
assert subscription is None
958958

959-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
959+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
960960
@parametrize
961961
async def test_raw_response_rotate_secret(self, async_client: AsyncLithic) -> None:
962962
response = await async_client.events.subscriptions.with_raw_response.rotate_secret(
@@ -968,7 +968,7 @@ async def test_raw_response_rotate_secret(self, async_client: AsyncLithic) -> No
968968
subscription = response.parse()
969969
assert subscription is None
970970

971-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
971+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
972972
@parametrize
973973
async def test_streaming_response_rotate_secret(self, async_client: AsyncLithic) -> None:
974974
async with async_client.events.subscriptions.with_streaming_response.rotate_secret(
@@ -982,7 +982,7 @@ async def test_streaming_response_rotate_secret(self, async_client: AsyncLithic)
982982

983983
assert cast(Any, response.is_closed) is True
984984

985-
@pytest.mark.skip(reason="Prism Mock server doesnt want Accept header, but server requires it.")
985+
@pytest.mark.skip(reason="Prism Mock server doesn't want Accept header, but server requires it.")
986986
@parametrize
987987
async def test_path_params_rotate_secret(self, async_client: AsyncLithic) -> None:
988988
with pytest.raises(

0 commit comments

Comments
 (0)