Skip to content

Commit

Permalink
refactor: removed union syntax in numeric.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lewoudar committed Nov 23, 2023
1 parent 27814f4 commit 53efb1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion click_params/numeric.py
Expand Up @@ -18,7 +18,7 @@ def __init__(self):
class DecimalRange(RangeParamType):
name = 'decimal range'

def __init__(self, minimum: Decimal | None = None, maximum: Decimal | None = None, clamp: bool = False):
def __init__(self, minimum: Optional[Decimal] = None, maximum: Optional[Decimal] = None, clamp: bool = False):
super().__init__(DECIMAL, minimum, maximum, clamp)


Expand Down
4 changes: 2 additions & 2 deletions docs/requirements.txt
@@ -1,4 +1,4 @@
click==8.0.0
validators==0.18.2
validators==0.22.0
deprecated==1.2.14
mkdocs-material==8.4.0
mkdocs-material==9.4.10
1 change: 1 addition & 0 deletions pyproject.toml
Expand Up @@ -56,6 +56,7 @@ addopts = "--cov=click_params --cov-report html --cov-report xml --cov-report te

[tool.ruff]
line-length = 120
target-version = "py38"

[tool.ruff.lint]
extend-select = [
Expand Down

0 comments on commit 53efb1d

Please sign in to comment.