Skip to content

Commit

Permalink
Make compatible with python3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
JanEricNitschke committed Sep 7, 2024
1 parent 0fd694b commit e9ebb1a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 4 additions & 2 deletions tictactoe_python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ exclude = [
line-length = 88


# Assume Python 3.11.
target-version = "py311"
# Assume Python 3.10.
target-version = "py310"

[tool.ruff.lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
Expand All @@ -63,6 +63,7 @@ ignore = [
"S311",
"T20",
"E501",
"PERF",
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
Expand All @@ -77,6 +78,7 @@ convention = "google" # Accepts: "google", "numpy", or "pep257".
[tool.pyright]
include = ["tictactoe/"]
exclude = ["tests"]
pythonVersion = "3.10"
typeCheckingMode = "strict"
strictListInference = true
strictDictionaryInference = true
Expand Down
2 changes: 1 addition & 1 deletion tictactoe_python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
typing-extensions<=4.4.0
typing-extensions>=4.6.0
3 changes: 1 addition & 2 deletions tictactoe_python/tictactoe/tictactoe_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
from dataclasses import dataclass
from enum import Enum
from time import sleep
from typing import Self

from typing_extensions import override
from typing_extensions import Self, override


class Board(Iterable[list[str]], Sized):
Expand Down

0 comments on commit e9ebb1a

Please sign in to comment.