Skip to content

Commit 7937ce5

Browse files
committed
Sort all imports.
1 parent 0d237bf commit 7937ce5

26 files changed

+68
-61
lines changed

python/selfie-lib/selfie_lib/ArrayMap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from collections.abc import Set, Iterator, Mapping, ItemsView
2-
from typing import List, Tuple, TypeVar, Union, Any
3-
from abc import abstractmethod, ABC
1+
from abc import ABC, abstractmethod
2+
from collections.abc import ItemsView, Iterator, Mapping, Set
3+
from typing import Any, List, Tuple, TypeVar, Union
44

55
T = TypeVar("T")
66
V = TypeVar("V")

python/selfie-lib/selfie_lib/CacheSelfie.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
from typing import Generic, TypeVar, Optional, Any
2-
from .WriteTracker import recordCall
1+
import base64
2+
from typing import Any, Generic, Optional, TypeVar
3+
4+
from .Literals import LiteralString, LiteralValue, TodoStub
5+
from .RoundTrip import Roundtrip
36
from .Snapshot import Snapshot
4-
from .Literals import LiteralValue, LiteralString, TodoStub
57
from .SnapshotSystem import DiskStorage
6-
from .RoundTrip import Roundtrip
7-
import base64
8+
from .WriteTracker import recordCall
89

910
T = TypeVar("T")
1011

python/selfie-lib/selfie_lib/CommentTracker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from typing import Dict, Iterable, Tuple
2-
from enum import Enum, auto
31
import threading
2+
from enum import Enum, auto
3+
from typing import Dict, Iterable, Tuple
44

55
from .Slice import Slice
66
from .TypedPath import TypedPath

python/selfie-lib/selfie_lib/FS.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from selfie_lib.TypedPath import TypedPath
2-
from pathlib import Path
3-
41
from abc import ABC, abstractmethod
2+
from pathlib import Path
53
from typing import Callable, Iterator
64

5+
from selfie_lib.TypedPath import TypedPath
6+
77

88
class FS(ABC):
99
def file_exists(self, typed_path: TypedPath) -> bool:

python/selfie-lib/selfie_lib/Literals.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import io
2+
import re
3+
from abc import abstractmethod
14
from enum import Enum, auto
25
from typing import Any, Protocol, TypeVar
3-
from abc import abstractmethod
46

57
from .EscapeLeadingWhitespace import EscapeLeadingWhitespace
6-
import io
7-
import re
88

99
T = TypeVar("T")
1010

python/selfie-lib/selfie_lib/RoundTrip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import TypeVar, Generic, Any
1+
from typing import Any, Generic, TypeVar
22

33
# Define generic type variables
44
T = TypeVar("T")

python/selfie-lib/selfie_lib/Selfie.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
from typing import Any, TypeVar, Optional, Protocol, Union, overload
2-
from .SelfieImplementations import ReprSelfie, StringSelfie
3-
from .SnapshotSystem import _selfieSystem
4-
from .Snapshot import Snapshot
1+
from typing import Any, Optional, Protocol, TypeVar, Union, overload
2+
53
from .CacheSelfie import CacheSelfie
64
from .RoundTrip import Roundtrip
5+
from .SelfieImplementations import ReprSelfie, StringSelfie
6+
from .Snapshot import Snapshot
7+
from .SnapshotSystem import _selfieSystem
78

89
# Declare T as covariant
910
T = TypeVar("T", covariant=True)

python/selfie-lib/selfie_lib/SelfieImplementations.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
import base64
2+
from abc import ABC, abstractmethod
3+
from itertools import chain
4+
from typing import Any, List, Optional
25

3-
from .Snapshot import Snapshot
4-
from .SnapshotFile import SnapshotFile
5-
from .SnapshotSystem import DiskStorage, SnapshotSystem, _selfieSystem, Mode
6-
from .WriteTracker import recordCall as recordCall
76
from .Literals import (
87
LiteralFormat,
98
LiteralRepr,
109
LiteralString,
1110
LiteralValue,
1211
TodoStub,
1312
)
14-
15-
16-
from abc import ABC, abstractmethod
17-
from typing import Any, List, Optional
18-
from itertools import chain
13+
from .Snapshot import Snapshot
14+
from .SnapshotFile import SnapshotFile
15+
from .SnapshotSystem import DiskStorage, Mode, SnapshotSystem, _selfieSystem
16+
from .WriteTracker import recordCall as recordCall
1917

2018

2119
class ReprSelfie[T]:

python/selfie-lib/selfie_lib/Slice.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
from typing import Optional
2-
from typing import Union
31
from collections import Counter
2+
from typing import Optional, Union
43

54

65
class Slice:

python/selfie-lib/selfie_lib/Snapshot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
from typing import Union, Iterable, Dict
2-
from .SnapshotValue import SnapshotValue
1+
from typing import Dict, Iterable, Union
2+
33
from .ArrayMap import ArrayMap
4+
from .SnapshotValue import SnapshotValue
45

56

67
class Snapshot:

0 commit comments

Comments
 (0)