ripple-down-rules 0.5.94__py3-none-any.whl → 0.5.95__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.
- ripple_down_rules/__init__.py +1 -1
- ripple_down_rules/utils.py +6 -8
- {ripple_down_rules-0.5.94.dist-info → ripple_down_rules-0.5.95.dist-info}/METADATA +1 -1
- {ripple_down_rules-0.5.94.dist-info → ripple_down_rules-0.5.95.dist-info}/RECORD +7 -7
- {ripple_down_rules-0.5.94.dist-info → ripple_down_rules-0.5.95.dist-info}/WHEEL +0 -0
- {ripple_down_rules-0.5.94.dist-info → ripple_down_rules-0.5.95.dist-info}/licenses/LICENSE +0 -0
- {ripple_down_rules-0.5.94.dist-info → ripple_down_rules-0.5.95.dist-info}/top_level.txt +0 -0
ripple_down_rules/__init__.py
CHANGED
ripple_down_rules/utils.py
CHANGED
@@ -851,15 +851,11 @@ def get_relative_import(target_file_path, imported_module_path: Optional[str] =
|
|
851
851
|
# Convert path to Python import format
|
852
852
|
rel_parts = [part.replace('..', '.') for part in Path(rel_path).parts]
|
853
853
|
rel_parts = rel_parts if rel_parts else ['']
|
854
|
-
|
855
|
-
|
854
|
+
dot_parts = [part for part in rel_parts if part == '.']
|
855
|
+
non_dot_parts = [part for part in rel_parts if part != '.'] + [imported_path.stem]
|
856
856
|
|
857
|
-
|
858
|
-
|
859
|
-
# joined_parts = "".join(dot_parts) + ".".join(non_dot_parts) + f".{imported_path.stem}"
|
860
|
-
joined_parts = "." + "".join(rel_parts)
|
861
|
-
joined_parts += imported_path.stem if joined_parts.endswith(".") else f".{imported_path.stem}"
|
862
|
-
# joined_parts = f".{joined_parts}" if not joined_parts.startswith(".") else joined_parts
|
857
|
+
# Join the parts
|
858
|
+
joined_parts = "." + "".join(dot_parts) + ".".join(non_dot_parts)
|
863
859
|
|
864
860
|
return joined_parts
|
865
861
|
|
@@ -926,6 +922,8 @@ def get_imports_from_types(type_objs: Iterable[Type],
|
|
926
922
|
or module in sys.builtin_module_names or module in excluded_modules or "<" in module \
|
927
923
|
or name in exclueded_names:
|
928
924
|
continue
|
925
|
+
if module == "typing":
|
926
|
+
module = "typing_extensions"
|
929
927
|
module_to_types[module].append(name)
|
930
928
|
except AttributeError:
|
931
929
|
continue
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ripple_down_rules
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.95
|
4
4
|
Summary: Implements the various versions of Ripple Down Rules (RDR) for knowledge representation and reasoning.
|
5
5
|
Author-email: Abdelrhman Bassiouny <abassiou@uni-bremen.de>
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
@@ -1,11 +1,11 @@
|
|
1
|
-
ripple_down_rules/__init__.py,sha256=
|
1
|
+
ripple_down_rules/__init__.py,sha256=2YbCMVId4Rq_iPakA2uby2d6kRHClQ90FEJIWdgjG3c,100
|
2
2
|
ripple_down_rules/experts.py,sha256=4-dMIVeMzFXCLYl_XBG_P7_Xs4sZih9-vZxCIPri6dA,12958
|
3
3
|
ripple_down_rules/helpers.py,sha256=sY8nFbYdLOO6EG5UQugCCxjSjcCQsDUCPgawfQA4Ui8,4495
|
4
4
|
ripple_down_rules/rdr.py,sha256=weOkaB2Z8PdudKJfSSdkCPYjk2o4Woduupg-_gHh2vU,55449
|
5
5
|
ripple_down_rules/rdr_decorators.py,sha256=riAFmL8jc1rw9dFkNbT023CfB5FbmOWHNiVKO2bAXsE,9195
|
6
6
|
ripple_down_rules/rules.py,sha256=iVevv6iZ-6L2IPI0ZYbBjxBymXEQMmJGRFhiKUS-NmA,20352
|
7
7
|
ripple_down_rules/start-code-server.sh,sha256=otClk7VmDgBOX2TS_cjws6K0UwvgAUJhoA0ugkPCLqQ,949
|
8
|
-
ripple_down_rules/utils.py,sha256=
|
8
|
+
ripple_down_rules/utils.py,sha256=IDVcKd4YGGvFzO1KaGIEk9u8xh13MrpsFM97VmvTfyw,61881
|
9
9
|
ripple_down_rules/datastructures/__init__.py,sha256=V2aNgf5C96Y5-IGghra3n9uiefpoIm_QdT7cc_C8cxQ,111
|
10
10
|
ripple_down_rules/datastructures/callable_expression.py,sha256=f3wUPTrLa1INO-1qfgVz87ryrCABronfyq0_JKWoZCs,12800
|
11
11
|
ripple_down_rules/datastructures/case.py,sha256=PJ7_-AdxYic6BO5z816piFODj6nU5J6Jt1YzTFH-dds,15510
|
@@ -17,8 +17,8 @@ ripple_down_rules/user_interface/ipython_custom_shell.py,sha256=yp-F8YRWGhj1PLB3
|
|
17
17
|
ripple_down_rules/user_interface/object_diagram.py,sha256=FEa2HaYR9QmTE6NsOwBvZ0jqmu3DKyg6mig2VE5ZP4Y,4956
|
18
18
|
ripple_down_rules/user_interface/prompt.py,sha256=JceEUGYsd0lIvd-v2y3D3swoo96_C0lxfp3CxM7Vfts,8900
|
19
19
|
ripple_down_rules/user_interface/template_file_creator.py,sha256=kwBbFLyN6Yx2NTIHPSwOoytWgbJDYhgrUOVFw_jkDQ4,13522
|
20
|
-
ripple_down_rules-0.5.
|
21
|
-
ripple_down_rules-0.5.
|
22
|
-
ripple_down_rules-0.5.
|
23
|
-
ripple_down_rules-0.5.
|
24
|
-
ripple_down_rules-0.5.
|
20
|
+
ripple_down_rules-0.5.95.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
21
|
+
ripple_down_rules-0.5.95.dist-info/METADATA,sha256=5sPvCDBc_3yV4wBp5f6YRDtQkmNrd1-d_Ce7ijm6NZ0,48214
|
22
|
+
ripple_down_rules-0.5.95.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
23
|
+
ripple_down_rules-0.5.95.dist-info/top_level.txt,sha256=VeoLhEhyK46M1OHwoPbCQLI1EifLjChqGzhQ6WEUqeM,18
|
24
|
+
ripple_down_rules-0.5.95.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|