Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: errors in typing for Python 3.13#104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
christyjacob4 merged 2 commits intomainfromdev
Mar 10, 2025
Merged

fix: errors in typing for Python 3.13#104

christyjacob4 merged 2 commits intomainfromdev
Mar 10, 2025

Conversation

christyjacob4
Copy link
Member

@christyjacob4christyjacob4 commentedMar 10, 2025
edited
Loading

What does this PR do?

In Python 3.13, list is now treated strictly as a built-in function, not a generic type hint. Python 3.13 introduces stricter type enforcement, causing conflicts whenlist[str] is used withoutfrom typing import List. Hence we get this error

Traceback (most recent call last):  File "/Users/christyjacob/opensource/christyjacob4/mcp-server-appwrite/.venv/bin/mcp-server-appwrite", line 4, in <module>    from mcp_server_appwrite.__main__ import main  File "/Users/christyjacob/opensource/christyjacob4/mcp-server-appwrite/src/mcp_server_appwrite/__init__.py", line 1, in <module>    from . import server  File "/Users/christyjacob/opensource/christyjacob4/mcp-server-appwrite/src/mcp_server_appwrite/server.py", line 11, in <module>    from appwrite.services.databases import Databases  File "/Users/christyjacob/opensource/christyjacob4/mcp-server-appwrite/.venv/lib/python3.13/site-packages/appwrite/services/databases.py", line 8, in <module>    class Databases(Service):    ...<1196 lines>...            }, api_params)  File "/Users/christyjacob/opensource/christyjacob4/mcp-server-appwrite/.venv/lib/python3.13/site-packages/appwrite/services/databases.py", line 108, in Databases    def list_collections(self, database_id: str, queries: list[str] = None, search: str = None):                                                          ~~~~^^^^^TypeError: 'function' object is not subscriptable

Hence we use theList that offers computability from Python 3.5+ to 3.13

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)

Related PRs and Issues

(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)

Have you read theContributing Guidelines on issues?

(Write your answer here.)

@christyjacob4christyjacob4 merged commit5c7f8e2 intomainMar 10, 2025
1 check passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@loks0nloks0nloks0n approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@christyjacob4@loks0n

[8]ページ先頭

©2009-2025 Movatter.jp