Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs_update-release-notes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.10'
python-version: '3.11'

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
timeout-minutes: 7
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
python-version: ["3.11", "3.12", "3.13", "3.14"]
fail-fast: false

steps:
Expand Down
11 changes: 2 additions & 9 deletions faststream/_internal/cli/utils/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import typer

from faststream.exceptions import INSTALL_TOML, INSTALL_YAML
from faststream.exceptions import INSTALL_YAML

if TYPE_CHECKING:
from faststream._internal.application import Application
Expand Down Expand Up @@ -108,14 +108,7 @@ def _get_yaml_config(file: Path) -> dict[str, Any] | Any:

def _get_toml_config(file: Path) -> dict[str, Any] | Any:
"""Parse toml config file to dict."""
try:
import tomllib
except ImportError:
try:
import tomli as tomllib
except ImportError as e:
typer.echo(INSTALL_TOML, err=True)
raise typer.Exit(1) from e
import tomllib

with file.open("rb") as config_file:
return tomllib.load(config_file)
Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ authors = [
license = "Apache-2.0"
license-files = ["LICENSE"]

requires-python = ">=3.10"
requires-python = ">=3.11"
version = "0.7.8"

keywords = [
Expand All @@ -34,7 +34,6 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
Expand Down Expand Up @@ -188,7 +187,7 @@ docs = {requires-python = ">=3.11"}
[tool.mypy]
files = ["faststream", "tests", "docs/docs_src"]
strict = true
python_version = "3.10"
python_version = "3.11"
strict_bytes = true
local_partial_types = true
ignore_missing_imports = true
Expand Down Expand Up @@ -269,14 +268,14 @@ disallow_subclassing_any = false
# user does. Pyright still follows imports into `faststream/`, so breakage in
# the framework surfaces here — but internal annotations are not policed.
include = ["tests/mypy"]
pythonVersion = "3.10"
pythonVersion = "3.11"
typeCheckingMode = "strict"

[tool.pyrefly]
# Same scope as pyright, for the same reason: the documented API has to type
# check for a user of any checker, internal annotations are mypy's job.
project-includes = ["tests/mypy"]
python-version = "3.10"
python-version = "3.11"
# the include is explicit; a checkout under an ignored path (a worktree) matches nothing otherwise
use-ignore-files = false

Expand Down
Loading
Loading