symbex 1.3__py3-none-any.whl → 1.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
symbex/lib.py CHANGED
@@ -169,7 +169,7 @@ def function_definition(function_node: AST):
169
169
  if isinstance(function_node, AsyncFunctionDef):
170
170
  def_ = "async def "
171
171
 
172
- return f"{def_}{function_name}({arguments_str}){return_annotation}"
172
+ return f"{def_}{function_name}({arguments_str}){return_annotation}:"
173
173
 
174
174
 
175
175
  def class_definition(class_def):
@@ -201,7 +201,7 @@ def class_definition(class_def):
201
201
  if signature:
202
202
  signature = f"({signature})"
203
203
 
204
- class_definition = f"class {class_def.name}{signature}"
204
+ class_definition = f"class {class_def.name}{signature}:"
205
205
 
206
206
  return class_definition
207
207
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: symbex
3
- Version: 1.3
3
+ Version: 1.3.1
4
4
  Summary: Find the Python code for specified symbols
5
5
  Home-page: https://github.com/simonw/symbex
6
6
  Author: Simon Willison
@@ -205,40 +205,40 @@ cog.out(
205
205
  ]]] -->
206
206
  ```python
207
207
  # File: symbex/lib.py Line: 107
208
- def function_definition(function_node: AST)
208
+ def function_definition(function_node: AST):
209
209
 
210
210
  # File: symbex/lib.py Line: 13
211
- def find_symbol_nodes(code: str, filename: str, symbols: Iterable[str]) -> List[Tuple[(AST, Optional[str])]]
211
+ def find_symbol_nodes(code: str, filename: str, symbols: Iterable[str]) -> List[Tuple[(AST, Optional[str])]]:
212
212
 
213
213
  # File: symbex/lib.py Line: 175
214
- def class_definition(class_def)
214
+ def class_definition(class_def):
215
215
 
216
216
  # File: symbex/lib.py Line: 209
217
- def annotation_definition(annotation: AST) -> str
217
+ def annotation_definition(annotation: AST) -> str:
218
218
 
219
219
  # File: symbex/lib.py Line: 227
220
- def read_file(path)
220
+ def read_file(path):
221
221
 
222
222
  # File: symbex/lib.py Line: 253
223
- class TypeSummary
223
+ class TypeSummary:
224
224
 
225
225
  # File: symbex/lib.py Line: 258
226
- def type_summary(node: AST) -> Optional[TypeSummary]
226
+ def type_summary(node: AST) -> Optional[TypeSummary]:
227
227
 
228
228
  # File: symbex/lib.py Line: 304
229
- def quoted_string(s)
229
+ def quoted_string(s):
230
230
 
231
231
  # File: symbex/lib.py Line: 315
232
- def import_line_for_function(function_name: str, filepath: str, possible_root_dirs: List[str]) -> str
232
+ def import_line_for_function(function_name: str, filepath: str, possible_root_dirs: List[str]) -> str:
233
233
 
234
234
  # File: symbex/lib.py Line: 37
235
- def code_for_node(code: str, node: AST, class_name: str, signatures: bool, docstrings: bool) -> Tuple[(str, int)]
235
+ def code_for_node(code: str, node: AST, class_name: str, signatures: bool, docstrings: bool) -> Tuple[(str, int)]:
236
236
 
237
237
  # File: symbex/lib.py Line: 71
238
- def add_docstring(definition: str, node: AST, docstrings: bool, is_method: bool) -> str
238
+ def add_docstring(definition: str, node: AST, docstrings: bool, is_method: bool) -> str:
239
239
 
240
240
  # File: symbex/lib.py Line: 82
241
- def match(name: str, symbols: Iterable[str]) -> bool
241
+ def match(name: str, symbols: Iterable[str]) -> bool:
242
242
  ```
243
243
  <!-- [[[end]]] -->
244
244
  This can be combined with other options, or you can run `symbex -s` to see every symbol in the current directory and its subdirectories.
@@ -260,7 +260,7 @@ cog.out(
260
260
  ```python
261
261
  # File: symbex/lib.py Line: 82
262
262
  # from symbex.lib import match
263
- def match(name: str, symbols: Iterable[str]) -> bool
263
+ def match(name: str, symbols: Iterable[str]) -> bool:
264
264
  ```
265
265
  <!-- [[[end]]] -->
266
266
  To suppress the `# File: ...` comments, use `--no-file` or `-n`.
@@ -280,7 +280,7 @@ cog.out(
280
280
  ]]] -->
281
281
  ```python
282
282
  # from symbex.lib import match
283
- def match(name: str, symbols: Iterable[str]) -> bool
283
+ def match(name: str, symbols: Iterable[str]) -> bool:
284
284
  ```
285
285
  <!-- [[[end]]] -->
286
286
 
@@ -297,7 +297,7 @@ cog.out(
297
297
  ]]] -->
298
298
  ```python
299
299
  # File: symbex/lib.py Line: 82
300
- def match(name: str, symbols: Iterable[str]) -> bool
300
+ def match(name: str, symbols: Iterable[str]) -> bool:
301
301
  "Returns True if name matches any of the symbols, resolving wildcards"
302
302
  ```
303
303
  <!-- [[[end]]] -->
@@ -0,0 +1,10 @@
1
+ symbex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ symbex/__main__.py,sha256=8hDtWlaFZK24KhfNq_ZKgtXqYHsDQDetukOCMlsbW0Q,59
3
+ symbex/cli.py,sha256=uuP28l7qAWWPE3b0u2HLM1ID89m402EBNgYOhcejdgw,14974
4
+ symbex/lib.py,sha256=CiKKOOyc6Ne_7igzNItMZpa5I6o12LEbIPrQU9al7Ro,11436
5
+ symbex-1.3.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
6
+ symbex-1.3.1.dist-info/METADATA,sha256=1oJBLr7_LdzFltBb5cMMCttPFo-XZhFGOzK_1MOQ9ls,19263
7
+ symbex-1.3.1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
8
+ symbex-1.3.1.dist-info/entry_points.txt,sha256=YgMSEfEGqNMHM9RysFObH8lkQKVZKyymKLnXbVue_Uk,42
9
+ symbex-1.3.1.dist-info/top_level.txt,sha256=qwle8HjAaYgpdMIHlJcTcN4gaG4wmDqUvkt54beTBTs,7
10
+ symbex-1.3.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.40.0)
2
+ Generator: bdist_wheel (0.41.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,10 +0,0 @@
1
- symbex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- symbex/__main__.py,sha256=8hDtWlaFZK24KhfNq_ZKgtXqYHsDQDetukOCMlsbW0Q,59
3
- symbex/cli.py,sha256=uuP28l7qAWWPE3b0u2HLM1ID89m402EBNgYOhcejdgw,14974
4
- symbex/lib.py,sha256=xgn-tiLoeIvu2iYpwuB7fvDK6epBBd5VHSc2Y7wRQsk,11434
5
- symbex-1.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
6
- symbex-1.3.dist-info/METADATA,sha256=Q3Lb8NwQTzmH8zPt1uzHxtEaFiypNGN9VQyCh3lpd_8,19246
7
- symbex-1.3.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
8
- symbex-1.3.dist-info/entry_points.txt,sha256=YgMSEfEGqNMHM9RysFObH8lkQKVZKyymKLnXbVue_Uk,42
9
- symbex-1.3.dist-info/top_level.txt,sha256=qwle8HjAaYgpdMIHlJcTcN4gaG4wmDqUvkt54beTBTs,7
10
- symbex-1.3.dist-info/RECORD,,
File without changes