mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 13:02:55 +00:00
Python 3.11 (#9515)
## Problem On Debian 12 (Bookworm), Python 3.11 is the latest available version. ## Summary of changes - Update Python to 3.11 in build-tools - Fix ruff check / format - Fix mypy - Use `StrEnum` instead of pair `str`, `Enum` - Update docs
This commit is contained in:
committed by
GitHub
parent
0713ff3176
commit
8d1c44039e
@@ -2,7 +2,7 @@ from __future__ import annotations
|
||||
|
||||
from contextlib import closing
|
||||
from io import BufferedReader, RawIOBase
|
||||
from typing import Optional, final
|
||||
from typing import final
|
||||
|
||||
from fixtures.compare_fixtures import PgCompare
|
||||
from typing_extensions import override
|
||||
@@ -13,7 +13,7 @@ class CopyTestData(RawIOBase):
|
||||
def __init__(self, rows: int):
|
||||
self.rows = rows
|
||||
self.rownum = 0
|
||||
self.linebuf: Optional[bytes] = None
|
||||
self.linebuf: bytes | None = None
|
||||
self.ptr = 0
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user