Add pyupgrade tool

This commit is contained in:
Ayaz Salikhov
2021-08-24 16:43:53 +03:00
parent 709f6750ef
commit ec9b7e9301
5 changed files with 16 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from dataclasses import dataclass, field
from typing import Optional, List
from typing import Optional
from .taggers import (
TaggerInterface,
SHATagger,
@@ -31,8 +31,8 @@ from .manifests import (
@dataclass
class ImageDescription:
parent_image: Optional[str]
taggers: List[TaggerInterface] = field(default_factory=list)
manifests: List[ManifestInterface] = field(default_factory=list)
taggers: list[TaggerInterface] = field(default_factory=list)
manifests: list[ManifestInterface] = field(default_factory=list)
ALL_IMAGES = {