Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit a846c285 authored by Dorian Turba's avatar Dorian Turba
Browse files

fix typer not supporting | type

parent e12e4f1a
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ build-backend = "hatchling.build" ...@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "requirements_compare" name = "requirements_compare"
version = "0.1.2" version = "0.1.3"
authors = [ authors = [
{ name = "Dorian Turba", email = "contact.r9qrp@8shield.net" }, { name = "Dorian Turba", email = "contact.r9qrp@8shield.net" },
{ name = "Simon Desnoyers", email = "0d3s3n@gmail.com"}, { name = "Simon Desnoyers", email = "0d3s3n@gmail.com"},
...@@ -26,7 +26,6 @@ dependencies = [ ...@@ -26,7 +26,6 @@ dependencies = [
"typer[all]", "typer[all]",
] ]
[project.urls] [project.urls]
"Homepage" = "https://lab.frogg.it/swepy/requirement-compare" "Homepage" = "https://lab.frogg.it/swepy/requirement-compare"
"Bug Tracker" = "https://lab.frogg.it/swepy/requirement-compare" "Bug Tracker" = "https://lab.frogg.it/swepy/requirement-compare"
......
...@@ -154,8 +154,9 @@ def main( ...@@ -154,8 +154,9 @@ def main(
pathlib.Path, typer.Argument(help="The updated requirements file to compare") pathlib.Path, typer.Argument(help="The updated requirements file to compare")
], ],
output_file: typing.Annotated[ output_file: typing.Annotated[
pathlib.Path | None, typer.Argument(help="Where to write the output") pathlib.Path, typer.Argument(help="Where to write the output")
] = None, ]
| None = None,
) -> None: ) -> None:
""" """
Compare a local requirements file to its HEAD version and generate a description of Compare a local requirements file to its HEAD version and generate a description of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment