mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-27 15:08:23 +00:00
chore: upgrade mypy
As a consequence, we need to resolve a typing issue.
This commit is contained in:
parent
b78feec895
commit
89520c016f
@ -26,7 +26,7 @@ kubernetes==18.20.0
|
|||||||
# via -r requirements/base.in
|
# via -r requirements/base.in
|
||||||
markupsafe==2.0.1
|
markupsafe==2.0.1
|
||||||
# via jinja2
|
# via jinja2
|
||||||
mypy==0.910
|
mypy==0.931
|
||||||
# via -r requirements/base.in
|
# via -r requirements/base.in
|
||||||
mypy-extensions==0.4.3
|
mypy-extensions==0.4.3
|
||||||
# via mypy
|
# via mypy
|
||||||
@ -59,7 +59,7 @@ six==1.16.0
|
|||||||
# google-auth
|
# google-auth
|
||||||
# kubernetes
|
# kubernetes
|
||||||
# python-dateutil
|
# python-dateutil
|
||||||
toml==0.10.2
|
tomli==2.0.1
|
||||||
# via mypy
|
# via mypy
|
||||||
typing-extensions==3.10.0.2
|
typing-extensions==3.10.0.2
|
||||||
# via mypy
|
# via mypy
|
||||||
|
@ -64,7 +64,7 @@ class BasePlugin:
|
|||||||
command = getattr(obj, "command", None)
|
command = getattr(obj, "command", None)
|
||||||
if command is not None:
|
if command is not None:
|
||||||
assert isinstance(command, click.Command)
|
assert isinstance(command, click.Command)
|
||||||
self.command: click.Command = command
|
self.command: Optional[click.Command] = command
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def load_config(obj: Any, plugin_name: str) -> Dict[str, Config]:
|
def load_config(obj: Any, plugin_name: str) -> Dict[str, Config]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user