Skip to content

Commit 4b9f83c

Browse files
committed
fixed mypy errors and upgraded packages
1 parent 1956828 commit 4b9f83c

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

ellar_cli/click/argument.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(
2323
self.hidden = hidden
2424

2525
# overridden to customize the automatic formatting of metavars
26-
def make_metavar(self) -> str:
26+
def make_metavar(self, ctx: click.Context) -> str:
2727
if self.metavar is not None:
2828
return self.metavar
2929
var = "" if self.required else "["
@@ -47,7 +47,7 @@ def _write_opts(opts: t.Any) -> str:
4747
if any_slashes:
4848
# TODO: test
4949
any_prefix_is_slash[:] = [True]
50-
rv += ": " + self.make_metavar()
50+
rv += ": " + self.make_metavar(ctx)
5151
return rv
5252

5353
rv = [_write_opts(self.opts)]

pyproject.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ dependencies = [
4343
# exclude 0.11.2 and 0.11.3 due to https://github.com/sdispater/tomlkit/issues/225
4444
"tomlkit >=0.11.1,<1.0.0,!=0.11.2,!=0.11.3",
4545
"ellar >= 0.8.1",
46-
"uvicorn[standard] == 0.34.2",
47-
"click >= 8.1.7",
46+
"uvicorn[standard] == 0.37.0",
47+
"click >= 8.3.0",
4848
]
4949

5050
[project.scripts]
@@ -122,7 +122,3 @@ ignore_errors = true
122122
[[tool.mypy.overrides]]
123123
module = "ellar_cli.testing.*"
124124
ignore_errors = true
125-
126-
[[tool.mypy.overrides]]
127-
module = "ellar_cli.click.argument"
128-
ignore_errors = true

0 commit comments

Comments
 (0)