Skip to content

Commit

Permalink
Migrate to python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
matti-lamppu committed Feb 5, 2024
1 parent fafa60b commit c138bac
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 209 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
id: setup-python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"

- name: "Load cached poetry installation"
uses: actions/cache@v4
Expand Down
4 changes: 2 additions & 2 deletions common/typing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import TYPE_CHECKING, TypeAlias, Union
from typing import TYPE_CHECKING, Union

from django.contrib.auth.models import AnonymousUser
from django.core.handlers.wsgi import WSGIRequest
Expand All @@ -12,7 +12,7 @@
"GQLInfo",
]

AnyUser: TypeAlias = Union["User", AnonymousUser]
type AnyUser = Union["User", AnonymousUser] # noqa: UP007


class UserHintedWSGIRequest(WSGIRequest):
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-slim-bullseye AS base
FROM python:3.12-slim-bullseye AS base

# Make sure we build as the root user.
USER root
Expand Down
Loading

0 comments on commit c138bac

Please sign in to comment.