Cleanup: use lower-case list and dict, add a test (#6161)

This commit is contained in:
Akuli
2021-10-13 19:59:27 +00:00
committed by GitHub
parent eab7adad62
commit e72a4034bf
8 changed files with 42 additions and 45 deletions

View File

@@ -1,6 +1,6 @@
import sys
from _typeshed import Self
from typing import Any, Dict, Iterator, List, Sequence, Text, Tuple, Type
from typing import Any, Iterator, Sequence, Text, Tuple, Type
if sys.version_info >= (3, 0):
from configparser import ConfigParser
@@ -53,5 +53,5 @@ def iter_files_distros(
path: Sequence[Text] | None = ..., repeated_distro: Text = ...
) -> Iterator[Tuple[ConfigParser, Distribution | None]]: ...
def get_single(group: Text, name: Text, path: Sequence[Text] | None = ...) -> EntryPoint: ...
def get_group_named(group: Text, path: Sequence[Text] | None = ...) -> Dict[str, EntryPoint]: ...
def get_group_all(group: Text, path: Sequence[Text] | None = ...) -> List[EntryPoint]: ...
def get_group_named(group: Text, path: Sequence[Text] | None = ...) -> dict[str, EntryPoint]: ...
def get_group_all(group: Text, path: Sequence[Text] | None = ...) -> list[EntryPoint]: ...