vulcan-core 1.1.4__tar.gz → 1.1.5__tar.gz
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.
Potentially problematic release.
This version of vulcan-core might be problematic. Click here for more details.
- {vulcan_core-1.1.4 → vulcan_core-1.1.5}/PKG-INFO +1 -1
- {vulcan_core-1.1.4 → vulcan_core-1.1.5}/pyproject.toml +1 -1
- {vulcan_core-1.1.4 → vulcan_core-1.1.5}/src/vulcan_core/ast_utils.py +2 -5
- {vulcan_core-1.1.4 → vulcan_core-1.1.5}/LICENSE +0 -0
- {vulcan_core-1.1.4 → vulcan_core-1.1.5}/NOTICE +0 -0
- {vulcan_core-1.1.4 → vulcan_core-1.1.5}/README.md +0 -0
- {vulcan_core-1.1.4 → vulcan_core-1.1.5}/src/vulcan_core/__init__.py +0 -0
- {vulcan_core-1.1.4 → vulcan_core-1.1.5}/src/vulcan_core/actions.py +0 -0
- {vulcan_core-1.1.4 → vulcan_core-1.1.5}/src/vulcan_core/conditions.py +0 -0
- {vulcan_core-1.1.4 → vulcan_core-1.1.5}/src/vulcan_core/engine.py +0 -0
- {vulcan_core-1.1.4 → vulcan_core-1.1.5}/src/vulcan_core/models.py +0 -0
- {vulcan_core-1.1.4 → vulcan_core-1.1.5}/src/vulcan_core/util.py +0 -0
|
@@ -20,7 +20,7 @@ requires = ["poetry-core"]
|
|
|
20
20
|
build-backend = "poetry.core.masonry.api"
|
|
21
21
|
|
|
22
22
|
[tool.poetry]
|
|
23
|
-
version = "1.1.
|
|
23
|
+
version = "1.1.5" # Update manually, or use plugin
|
|
24
24
|
packages = [{ include = "vulcan_core", from="src" }]
|
|
25
25
|
requires-poetry = "~2.1.1"
|
|
26
26
|
classifiers = [
|
|
@@ -279,13 +279,10 @@ class ASTProcessor[T: Callable]:
|
|
|
279
279
|
|
|
280
280
|
try:
|
|
281
281
|
# Get the source file and line number
|
|
282
|
-
|
|
282
|
+
# Avoid reading source from files directly, as it may fail in some cases (e.g., lambdas in REPL)
|
|
283
|
+
file_content = "".join(inspect.findsource(self.func)[0])
|
|
283
284
|
lambda_lineno = self.func.__code__.co_firstlineno
|
|
284
285
|
|
|
285
|
-
# Read the source file
|
|
286
|
-
with open(filename, encoding="utf-8") as f:
|
|
287
|
-
file_content = f.read()
|
|
288
|
-
|
|
289
286
|
# Parse the AST of the source file
|
|
290
287
|
file_ast = ast.parse(file_content)
|
|
291
288
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|