mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-25 22:18:24 +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
|
||||
markupsafe==2.0.1
|
||||
# via jinja2
|
||||
mypy==0.910
|
||||
mypy==0.931
|
||||
# via -r requirements/base.in
|
||||
mypy-extensions==0.4.3
|
||||
# via mypy
|
||||
@ -59,7 +59,7 @@ six==1.16.0
|
||||
# google-auth
|
||||
# kubernetes
|
||||
# python-dateutil
|
||||
toml==0.10.2
|
||||
tomli==2.0.1
|
||||
# via mypy
|
||||
typing-extensions==3.10.0.2
|
||||
# via mypy
|
||||
|
@ -64,7 +64,7 @@ class BasePlugin:
|
||||
command = getattr(obj, "command", None)
|
||||
if command is not None:
|
||||
assert isinstance(command, click.Command)
|
||||
self.command: click.Command = command
|
||||
self.command: Optional[click.Command] = command
|
||||
|
||||
@staticmethod
|
||||
def load_config(obj: Any, plugin_name: str) -> Dict[str, Config]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user