If /usr/bin/isort is found, run it during "make format" to get a defined way the imports are sorted. tool.isort in pyproject.toml is updated to match the other fixers. Commit the fallout of this change. Running the other fixers alone doesn't change the formatting, so this should be safe. Signed-off-by: Jan Lindemann <jan@janware.com>
20 lines
508 B
Python
20 lines
508 B
Python
from __future__ import annotations
|
|
|
|
from typing import TYPE_CHECKING, override
|
|
|
|
from ....CmdBase import CmdBase as Base
|
|
from ..CmdCheck import CmdCheck as Parent
|
|
|
|
if TYPE_CHECKING:
|
|
from argparse import ArgumentParser
|
|
|
|
class Cmd(Base): # export
|
|
|
|
def __init__(self, parent: Parent, name: str, help: str) -> None:
|
|
super().__init__(parent, name, help)
|
|
|
|
@override
|
|
def add_arguments(self, parser: ArgumentParser) -> None:
|
|
super().add_arguments(parser)
|
|
|
|
__all__ = ['Parent', 'Cmd']
|