Skip to content

Comments

Update dependecies#305

Merged
dantownsend merged 6 commits intopiccolo-orm:masterfrom
sinisaos:update_dependencies
May 30, 2025
Merged

Update dependecies#305
dantownsend merged 6 commits intopiccolo-orm:masterfrom
sinisaos:update_dependencies

Conversation

@sinisaos
Copy link
Member

Update dependecies and fix a few mypy errors.

@sinisaos
Copy link
Member Author

@dantownsend I haven't seen that before, but Piccolo API still supports Python 3.8. Should we change that (remove 3.8 and add 3.13)? If no, I will delete this PR.

@dantownsend
Copy link
Member

@sinisaos Yes, we should drop Python 3.8.

Can you possibly split this into multiple PRs - the changes to setup.py and the GitHub actions look great to me, and can be merged in straight away. The other dependency and MyPy changes I need to play around with a bit.

@sinisaos
Copy link
Member Author

@dantownsend I reverted the dependency changes. I only need to change one type annotation in auth_token tables.py because without that change Mypy complains and linters don't pass

Sphinx==7.2.6
piccolo-theme==0.21.0
sphinx-autobuild==2024.2.4
sphinx-autobuild==2024.2.4 No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What changed here? Just whitespace?


@classmethod
async def authenticate_sync(cls, token: str) -> t.Optional[int]:
async def authenticate_sync(cls, token: str) -> First:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is wrong - authenticate_sync shouldn't be async.

Lets pull this out into a separate PR - it needs properly refactoring.

@dantownsend
Copy link
Member

@sinisaos I've merged in the setup.py and GitHub actions changes. In this PR, would you be able to add back the changes to requirements.txt etc?

@sinisaos
Copy link
Member Author

@dantownsend I reverted the changes. I hope that's okay.


self.alias = f"{piccolo_crud.table._meta.tablename}__{id(self)}"

global ANNOTATIONS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to keep this - we need to make sure the global ANNOTATIONS are updated. Is it causing mypy errors? If so, lets ignore the error.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put a noqa comment next to it.

@dantownsend dantownsend merged commit 72ad699 into piccolo-orm:master May 30, 2025
11 checks passed
@dantownsend
Copy link
Member

@sinisaos Thanks!

@sinisaos sinisaos deleted the update_dependencies branch May 30, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants