anot 0.0.3__cp39-cp39-win_amd64.whl → 0.0.6__cp39-cp39-win_amd64.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():
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__ = ["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=mGZoEu0qqZUVIkrGaUyBb28ejgKAEyhie3S40GiqI_0,2000
2
+ anot-0.0.6.dist-info/WHEEL,sha256=Dg5iAOm8hb2flCZz-g3oSBJ_MQUtfLw_2uuDTAM9fQs,94
3
+ anot-0.0.6.dist-info/entry_points.txt,sha256=mPWtQta64rfTTLVR2QTtFW5wrpI7NiIGXVM5iRRBfN4,42
4
+ anot-0.0.6.dist-info/licenses/LICENSE,sha256=YFc2tFnzSazacsYmIt-qeNNkAfo6pb_elMqhfd80X94,1088
5
+ anot/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ anot/_anot.pyi,sha256=qVS-VfvzZHdJV5ELUYZfOgUEb4DnrVwRRvGk7ZsnrtE,1129
7
+ anot/__init__.py,sha256=obi_D-AIr8bEnmgYT-RglUcZYFhbrCwTaglMwGa5QIw,353
8
+ anot/_anot.cp39-win_amd64.pyd,sha256=iOJ4So0vzRbRFPX56mq_1a1iLmJK-J-1WJM_6CMYlM4,4727808
9
+ anot-0.0.6.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- anot-0.0.3.dist-info/METADATA,sha256=yMQW5paikoZ-MVf6fADCfNjDbBsNTgyeK-0SrSpRckg,2000
2
- anot-0.0.3.dist-info/WHEEL,sha256=Dg5iAOm8hb2flCZz-g3oSBJ_MQUtfLw_2uuDTAM9fQs,94
3
- anot-0.0.3.dist-info/entry_points.txt,sha256=mPWtQta64rfTTLVR2QTtFW5wrpI7NiIGXVM5iRRBfN4,42
4
- anot-0.0.3.dist-info/licenses/LICENSE,sha256=YFc2tFnzSazacsYmIt-qeNNkAfo6pb_elMqhfd80X94,1088
5
- anot/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- anot/_anot.pyi,sha256=2VZpaYjP9NtXj6pPfLx_Vg0LQIBXglCjTj1WQboHY_8,614
7
- anot/__init__.py,sha256=q7yZZX3worVnGCpzm8UuGqTMRivdimsE7kHCGqseruM,227
8
- anot/_anot.cp39-win_amd64.pyd,sha256=AMMV9iCRvIFHCuVubecT1uv7EWp_x4POae0xKRMSbpo,1063424
9
- anot-0.0.3.dist-info/RECORD,,
File without changes