Skip to content

Commit

Permalink
🔥 Remove _typing.py file
Browse files Browse the repository at this point in the history
It was only used to import the `get_args` and `get_origin` methods, but we can
import them from `typing_extensions` directly.
  • Loading branch information
ivantodorovich committed Apr 24, 2024
1 parent 8bffffd commit f5f5304
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 639 deletions.
6 changes: 0 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ source = [
"tests",
"typer"
]
omit = [
"typer/_typing.py"
]
context = '${CONTEXT}'

[tool.coverage.report]
Expand Down Expand Up @@ -189,9 +186,6 @@ ignore = [
# Loop control variable `x` not used within loop body
"docs_src/using_click/tutorial001.py" = ["B007"]

# TODO: refactor _typing.py, remove unnecessary code
"typer/_typing.py" = ["UP036", "F822"]

[tool.ruff.lint.isort]
known-third-party = ["typer", "click"]
# For docs_src/subcommands/tutorial003/
Expand Down
Loading

0 comments on commit f5f5304

Please sign in to comment.