anot 0.0.3__cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl → 0.0.6__cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Sign up to get free protection for your applications and to get access to all the features.
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
- __all__ = ["Annotation", "extract_annotations", "format_annotations", "run_cli"]
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():
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__ = ["Annotation", "extract_annotations", "format_annotations", "run_cli"]
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
- def __init__(self, kind: str, content: str) -> None: ...
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: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: anot
3
- Version: 0.0.3
3
+ Version: 0.0.6
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Programming Language :: Rust
6
6
  Classifier: Programming Language :: Python :: Implementation :: CPython
@@ -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=PlktbXktgwjy5cjstRHwGH2RJjC_xc8RDoH7RCO94Cs,131
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/__init__.py,sha256=x8GiUNmA2g-xjluvl8dixs0h8LdajMDJ72D7eGYQuJs,330
6
+ anot/_anot.pyi,sha256=RdumOMDOd5LPiKQrJi2cnESWvL5J1UjDOCSQuEgBMXo,1085
7
+ anot/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ anot/_anot.cpython-312-powerpc64le-linux-gnu.so,sha256=0WXWT1L6X_XoiLc78k7Woo6ujLhgCNANBbrqI90Fajw,6333176
9
+ anot-0.0.6.dist-info/RECORD,,
@@ -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=PlktbXktgwjy5cjstRHwGH2RJjC_xc8RDoH7RCO94Cs,131
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-312-powerpc64le-linux-gnu.so,sha256=UZXtotNZDqoG4RQQrocF66t3s7ji2Msf3xwunIi3Y4g,1763840
9
- anot-0.0.3.dist-info/RECORD,,
File without changes