Skip to content

Commit 175af19

Browse files
committed
chore: bump mypy
1 parent ab4c4fd commit 175af19

8 files changed

Lines changed: 141 additions & 43 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ build-backend = "setuptools.build_meta"
3434

3535
[dependency-groups]
3636
dev = [
37-
"mypy",
37+
"mypy>=1.19.0",
3838
"pytest",
3939
"coverage",
4040
"pytest-mock",

src/typesense/analytics_rule_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class AnalyticsRuleV1:
5353
rule_id (str): The ID of the analytics rule.
5454
"""
5555

56-
@warn_deprecation( # type: ignore[misc]
56+
@warn_deprecation( # type: ignore[untyped-decorator]
5757
"AnalyticsRuleV1 is deprecated on v30+. Use client.analytics.rules[rule_id] instead.",
5858
flag_name="analytics_rules_v1_deprecation",
5959
)

src/typesense/analytics_rules_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class AnalyticsRulesV1(object):
6565

6666
resource_path: typing.Final[str] = "/analytics/rules"
6767

68-
@warn_deprecation( # type: ignore[misc]
68+
@warn_deprecation( # type: ignore[untyped-decorator]
6969
"AnalyticsRulesV1 is deprecated on v30+. Use client.analytics instead.",
7070
flag_name="analytics_rules_v1_deprecation",
7171
)

src/typesense/override.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Override:
4242
override_id (str): The ID of the override.
4343
"""
4444

45-
@warn_deprecation( # type: ignore[misc]
45+
@warn_deprecation( # type: ignore[untyped-decorator]
4646
"The override API (collections/{collection}/overrides/{override_id}) is deprecated is removed on v30+. "
4747
"Use curation sets (curation_sets) instead.",
4848
flag_name="overrides_deprecation",

src/typesense/overrides.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
versions through the use of the typing_extensions library.
2626
"""
2727

28-
from __future__ import annotations
29-
3028
import sys
3129

3230
from typing_extensions import deprecated
@@ -63,7 +61,7 @@ class Overrides:
6361

6462
resource_path: typing.Final[str] = "overrides"
6563

66-
@warn_deprecation( # type: ignore[misc]
64+
@warn_deprecation( # type: ignore[untyped-decorator]
6765
"Overrides is deprecated on v30+. Use client.curation_sets instead.",
6866
flag_name="overrides_deprecation",
6967
)

src/typesense/synonym.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Synonym:
3939
synonym_id (str): The ID of the synonym.
4040
"""
4141

42-
@warn_deprecation( # type: ignore[misc]
42+
@warn_deprecation( # type: ignore[untyped-decorator]
4343
"The synonym API (collections/{collection}/synonyms/{synonym_id}) is deprecated is removed on v30+. "
4444
"Use synonym sets (synonym_sets) instead.",
4545
flag_name="synonyms_deprecation",

src/typesense/synonyms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Synonyms:
6161

6262
resource_path: typing.Final[str] = "synonyms"
6363

64-
@warn_deprecation( # type: ignore[misc]
64+
@warn_deprecation( # type: ignore[untyped-decorator]
6565
"The synonyms API (collections/{collection}/synonyms) is deprecated is removed on v30+. "
6666
"Use synonym sets (synonym_sets) instead.",
6767
flag_name="synonyms_deprecation",

uv.lock

Lines changed: 134 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)