Skip to content

Commit

Permalink
Merge pull request astropy#15529 from eerovaher/ruff-python-target-ve…
Browse files Browse the repository at this point in the history
…rsion

Remove explicit Ruff Python target version
  • Loading branch information
pllim authored Oct 24, 2023
2 parents 7a50223 + 0c1ecb9 commit e586c13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion astropy/cosmology/parameter/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
import copy
from dataclasses import dataclass, field, fields, replace
from enum import Enum, auto
from typing import Any, Sequence
from typing import TYPE_CHECKING, Any

import astropy.units as u
from astropy.utils.compat import PYTHON_LT_3_10

from ._converter import _REGISTRY_FVALIDATORS, FValidateCallable, _register_validator

if TYPE_CHECKING:
from collections.abc import Sequence

if not PYTHON_LT_3_10:
from dataclasses import KW_ONLY
else:
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,6 @@ exclude= [
]

[tool.ruff]
# Our minimum Python version is 3.9 but we want to minimize backport issues, so
# we use 3.8 as the target version.
target-version = "py38"
line-length = 88
select = ["ALL"]
exclude=[
Expand Down

0 comments on commit e586c13

Please sign in to comment.