anot 0.0.3__cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl → 0.0.6__cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl
Sign up to get free protection for your applications and to get access to all the features.
- anot/__init__.py +17 -2
- anot/_anot.cpython-310-s390x-linux-gnu.so +0 -0
- anot/_anot.pyi +28 -4
- {anot-0.0.3.dist-info → anot-0.0.6.dist-info}/METADATA +1 -1
- anot-0.0.6.dist-info/RECORD +9 -0
- anot-0.0.3.dist-info/RECORD +0 -9
- {anot-0.0.3.dist-info → anot-0.0.6.dist-info}/WHEEL +0 -0
- {anot-0.0.3.dist-info → anot-0.0.6.dist-info}/entry_points.txt +0 -0
- {anot-0.0.3.dist-info → anot-0.0.6.dist-info}/licenses/LICENSE +0 -0
anot/__init__.py
CHANGED
@@ -1,7 +1,22 @@
|
|
1
1
|
import sys
|
2
|
-
from ._anot import Annotation, extract_annotations, format_annotations, run_cli
|
3
2
|
|
4
|
-
|
3
|
+
from ._anot import (
|
4
|
+
Annotation,
|
5
|
+
Location,
|
6
|
+
SyntaxContext,
|
7
|
+
extract_annotations,
|
8
|
+
format_annotations,
|
9
|
+
run_cli,
|
10
|
+
)
|
11
|
+
|
12
|
+
__all__ = [
|
13
|
+
"Annotation",
|
14
|
+
"Location",
|
15
|
+
"SyntaxContext",
|
16
|
+
"extract_annotations",
|
17
|
+
"format_annotations",
|
18
|
+
"run_cli",
|
19
|
+
]
|
5
20
|
|
6
21
|
|
7
22
|
def main():
|
Binary file
|
anot/_anot.pyi
CHANGED
@@ -1,19 +1,43 @@
|
|
1
1
|
from pathlib import Path
|
2
|
-
from typing import List
|
2
|
+
from typing import List, Optional
|
3
3
|
|
4
|
-
__all__ = [
|
4
|
+
__all__ = [
|
5
|
+
"Annotation",
|
6
|
+
"Location",
|
7
|
+
"SyntaxContext",
|
8
|
+
"extract_annotations",
|
9
|
+
"format_annotations",
|
10
|
+
"run_cli",
|
11
|
+
]
|
12
|
+
|
13
|
+
class SyntaxContext:
|
14
|
+
node_type: str
|
15
|
+
parent_type: str
|
16
|
+
associated_name: Optional[str]
|
17
|
+
variable_name: Optional[str]
|
18
|
+
def __init__(
|
19
|
+
self,
|
20
|
+
*,
|
21
|
+
node_type: str,
|
22
|
+
parent_type: str,
|
23
|
+
associated_name: Optional[str] = None,
|
24
|
+
variable_name: Optional[str] = None,
|
25
|
+
) -> None: ...
|
5
26
|
|
6
27
|
class Location:
|
7
28
|
file: Path
|
8
29
|
line: int
|
9
30
|
inline: bool
|
10
|
-
def __init__(self, file: Path, line: int, inline: bool) -> None: ...
|
31
|
+
def __init__(self, *, file: Path, line: int, inline: bool) -> None: ...
|
11
32
|
|
12
33
|
class Annotation:
|
13
34
|
kind: str
|
14
35
|
content: str
|
15
36
|
location: Location
|
16
|
-
|
37
|
+
context: SyntaxContext
|
38
|
+
def __init__(
|
39
|
+
self, *, kind: str, content: str, location: Location, context: SyntaxContext
|
40
|
+
) -> None: ...
|
17
41
|
|
18
42
|
def extract_annotations(content: str, file_type: str) -> List[Annotation]: ...
|
19
43
|
def format_annotations(annotations: List[Annotation], format: str) -> str: ...
|
@@ -0,0 +1,9 @@
|
|
1
|
+
anot-0.0.6.dist-info/METADATA,sha256=yMkK9x6Rs6QXb51QqBWon0u9BgVwnLi9e_bf0D-YAmI,1961
|
2
|
+
anot-0.0.6.dist-info/WHEEL,sha256=KQiGtvYH5nejrRJlfy4WvB6ESudHBRB4ih63Vq953Gk,127
|
3
|
+
anot-0.0.6.dist-info/entry_points.txt,sha256=mPWtQta64rfTTLVR2QTtFW5wrpI7NiIGXVM5iRRBfN4,42
|
4
|
+
anot-0.0.6.dist-info/licenses/LICENSE,sha256=4D2nzrtS-eVgo2u4a_1FtAW5ZR03wSoCRRjDLhs45_w,1067
|
5
|
+
anot/_anot.pyi,sha256=RdumOMDOd5LPiKQrJi2cnESWvL5J1UjDOCSQuEgBMXo,1085
|
6
|
+
anot/__init__.py,sha256=x8GiUNmA2g-xjluvl8dixs0h8LdajMDJ72D7eGYQuJs,330
|
7
|
+
anot/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
+
anot/_anot.cpython-310-s390x-linux-gnu.so,sha256=FHvxWe8tHJJOyVHXJku63dCImGkArdthStVLX9Q_qcs,6313704
|
9
|
+
anot-0.0.6.dist-info/RECORD,,
|
anot-0.0.3.dist-info/RECORD
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
anot-0.0.3.dist-info/METADATA,sha256=sIprO--NtObDOnAUig5r65yCGbY9H05VTCSA9_CXzO8,1961
|
2
|
-
anot-0.0.3.dist-info/WHEEL,sha256=KQiGtvYH5nejrRJlfy4WvB6ESudHBRB4ih63Vq953Gk,127
|
3
|
-
anot-0.0.3.dist-info/entry_points.txt,sha256=mPWtQta64rfTTLVR2QTtFW5wrpI7NiIGXVM5iRRBfN4,42
|
4
|
-
anot-0.0.3.dist-info/licenses/LICENSE,sha256=4D2nzrtS-eVgo2u4a_1FtAW5ZR03wSoCRRjDLhs45_w,1067
|
5
|
-
anot/__init__.py,sha256=1J_ynOI3Y3fKCpt6xmcIkPuR16w8eRcL89vuhINsAd8,219
|
6
|
-
anot/_anot.pyi,sha256=GKQxYSNE7ViXkknnPM3_3m0aK1B6Tb2C6SjqeL9-Cuk,594
|
7
|
-
anot/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
anot/_anot.cpython-310-s390x-linux-gnu.so,sha256=-It3pz0rYsl8d0RdcDOVKVmTifjpAtyQYlxCj3vkook,1750472
|
9
|
-
anot-0.0.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|