Skip to content

Commit e1c988a

Browse files
committed
sort all imports
1 parent 95f80d4 commit e1c988a

14 files changed

+21
-6
lines changed

Diff for: examples/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from . import shapes
2-
from . import transform
1+
from . import shapes, transform
32

43

54
__all__ = ['shapes', 'transform']

Diff for: examples/grid3.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
import svg
34

45

Diff for: examples/text.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
chromium examples/text.svg
88
"""
99
from textwrap import dedent
10+
1011
import svg
1112

1213

Diff for: examples/transform.py

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
because it gives a better control over types.
1111
"""
1212
from __future__ import annotations
13+
1314
import svg
1415

1516

Diff for: reflect/_lib_element.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import svg
66

7+
78
try:
89
from functools import cached_property
910
except ImportError:

Diff for: reflect/_mdn_attr.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
import re
34
from dataclasses import dataclass
45
from pathlib import Path

Diff for: svg/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"""
33
from ._filters import (
44
FeBlend, FeColorMatrix, FeComponentTransfer, FeComposite, FeConvolveMatrix,
5-
FeDiffuseLighting, FeDisplacementMap, FeDistantLight, FeDropShadow, FeFlood, FeFuncA,
6-
FeFuncB, FeFuncG, FeFuncR, FeGaussianBlur, FeImage, FeMerge, FeMergeNode,
7-
FeMorphology, FeOffset, FePointLight, FeSpecularLighting, FeSpotLight,
8-
FeTile, FeTurbulence, Filter,
5+
FeDiffuseLighting, FeDisplacementMap, FeDistantLight, FeDropShadow,
6+
FeFlood, FeFuncA, FeFuncB, FeFuncG, FeFuncR, FeGaussianBlur, FeImage,
7+
FeMerge, FeMergeNode, FeMorphology, FeOffset, FePointLight,
8+
FeSpecularLighting, FeSpotLight, FeTile, FeTurbulence, Filter,
99
)
1010
from ._helpers import escape, mm, px
1111
from ._path import (

Diff for: svg/_filters.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from ._types import Length, Number, PreserveAspectRatio
99
from .elements import Element
1010

11+
1112
if TYPE_CHECKING:
1213
from typing_extensions import Literal
1314

Diff for: svg/_mixins.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
from __future__ import annotations
2+
23
from dataclasses import dataclass
34
from typing import TYPE_CHECKING
45

56
from ._types import Length, Number
67

8+
79
if TYPE_CHECKING:
810
from typing_extensions import Literal
911

Diff for: svg/_path.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
from dataclasses import astuple, dataclass
34
from typing import ClassVar
45

Diff for: svg/_transforms.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
2+
23
from dataclasses import dataclass
4+
35
from ._types import Number
46

57

Diff for: svg/_types.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
from __future__ import annotations
2+
23
from dataclasses import dataclass
34
from decimal import Decimal
45
from typing import TYPE_CHECKING, Union
56

7+
68
if TYPE_CHECKING:
79
from typing_extensions import Literal
810

Diff for: svg/elements.py

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from ._transforms import Transform
1010
from ._types import Length, Number, PreserveAspectRatio, ViewBoxSpec
1111

12+
1213
if TYPE_CHECKING:
1314
from typing_extensions import Literal
1415

Diff for: tests/test_examples.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from pathlib import Path
2+
23
import pytest
4+
35
import examples
46
import svg
57

0 commit comments

Comments
 (0)