mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
drop Python 3.8 support (#10265)
* drop Python 3.8 Note that this PR only makes typing related changes. Other changes can be done once this gets merged, they are relatively few in numbers. * bump build python version * add typing_extensions to lint group
This commit is contained in:
@@ -2,7 +2,6 @@ import logging
|
||||
import re
|
||||
from argparse import SUPPRESS, ArgumentParser
|
||||
from itertools import takewhile
|
||||
from typing import Tuple
|
||||
|
||||
import pytest
|
||||
import shtab
|
||||
@@ -12,10 +11,10 @@ from dvc.cli.parser import get_main_parser
|
||||
|
||||
|
||||
def command_tuples():
|
||||
root: Tuple[str, ...] = ()
|
||||
root: tuple[str, ...] = ()
|
||||
commands = [root]
|
||||
|
||||
def recurse_parser(parser: ArgumentParser, parents: Tuple[str, ...] = root) -> None:
|
||||
def recurse_parser(parser: ArgumentParser, parents: tuple[str, ...] = root) -> None:
|
||||
for positional in parser._get_positional_actions():
|
||||
if positional.help != SUPPRESS and isinstance(positional.choices, dict):
|
||||
public_cmds = shtab.get_public_subcommands(positional)
|
||||
|
||||
Reference in New Issue
Block a user