Skip to content

Commit 15cda36

Browse files
committed
chore: update ruff target-version and pre-commit to Python 3.14
Remove unnecessary string quotes from type annotations (UP037) now that PEP 649 deferred evaluation is native in 3.14.
1 parent d4d204c commit 15cda36

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ repos:
5858

5959
# Configuration
6060
default_language_version:
61-
python: python3.13
61+
python: python3.14
6262

6363
# Run on all files by default
6464
files: ''

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ exclude = [
7373
]
7474
line-length = 120
7575
indent-width = 4
76-
target-version = "py313"
76+
target-version = "py314"
7777

7878
[tool.ruff.lint]
7979
select = [

src/pararam_nexus_mcp/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
class PararamClient:
1717
"""Wrapper for AsyncPararamio with cookie storage and session management. Singleton."""
1818

19-
_instance: 'PararamClient | None' = None
19+
_instance: PararamClient | None = None
2020

21-
def __new__(cls) -> 'PararamClient':
21+
def __new__(cls) -> PararamClient:
2222
"""Create or return singleton instance."""
2323
if cls._instance is None:
2424
cls._instance = super().__new__(cls)
@@ -33,7 +33,7 @@ def __init__(self) -> None:
3333
self._cookie_manager: AsyncFileCookieManager = AsyncFileCookieManager(str(config.pararam_cookie_file))
3434
self._initialized: bool = True
3535

36-
async def __aenter__(self) -> 'PararamClient':
36+
async def __aenter__(self) -> PararamClient:
3737
"""Async context manager entry."""
3838
await self.connect()
3939
return self

src/pararam_nexus_mcp/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class UploadFileToChatInput(BaseModel):
5353
reply_to_message_id: str | None = Field(None, pattern=r'^\d+$', description='Reply to post number')
5454

5555
@model_validator(mode='after')
56-
def validate_file_source(self) -> 'UploadFileToChatInput':
56+
def validate_file_source(self) -> UploadFileToChatInput:
5757
"""Validate that only one file source is provided."""
5858
if self.file_path and self.file_content:
5959
raise ValueError('Cannot specify both file_path and file_content')

0 commit comments

Comments
 (0)