Skip to content

Commit 106e12b

Browse files
committed
chore: Update Python version requirement to >=3.10 and adjust CI matrix
1 parent 3969611 commit 106e12b

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
10+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1111

1212
steps:
1313
- uses: actions/checkout@v4

cheatbot/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Python library for interacting with the CheatBot API.
33
"""
44
from .client import CheatBotClient
5+
from . import models
56
from .models import * # noqa: F403, F401
67

78
__all__ = ["CheatBotClient"] + models.__all__ # noqa: F405

cheatbot/models/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def get_field(self, name: str) -> FormField | None:
9696
def get_tags(self) -> list[str] | None:
9797
"""Returns the list of tags if they exist in the service."""
9898
tags_field = self.get_field("descriptionTags")
99-
if tags_field and hasattr(tags_field, "params") and hasattr(tags_field.params, "values"):
99+
if tags_field and hasattr(tags_field, "params") and tags_field.params and hasattr(tags_field.params, "values"):
100100
return tags_field.params.values
101101
return None
102102

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ authors = [
1111
description = "Асинхронная Python-библиотека для взаимодействия с API сервиса CheatBot."
1212
readme = "README.md"
1313
license = { file = "LICENSE" }
14-
requires-python = ">=3.9"
14+
requires-python = ">=3.10"
1515
classifiers = [
1616
"Programming Language :: Python :: 3",
1717
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)