We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec48f79 commit a2ff31aCopy full SHA for a2ff31a
django_typer/management/__init__.py
@@ -1951,9 +1951,13 @@ def __new__(
1951
attr_help = base.help
1952
1953
def command_bases() -> t.Generator[t.Type[TyperCommand], None, None]:
1954
- for base in reversed(bases):
1955
- if issubclass(base, TyperCommand) and base is not TyperCommand:
1956
- yield base
+ seen = set()
+ for first_level in reversed(bases):
+ for base in reversed(first_level.__mro__):
1957
+ if issubclass(base, TyperCommand) and base is not TyperCommand:
1958
+ if base not in seen:
1959
+ seen.add(base)
1960
+ yield base
1961
1962
typer_app = Typer(
1963
name=name or attrs.get("__module__", "").rsplit(".", maxsplit=1)[-1],
0 commit comments