Spaces:
Sleeping
Sleeping
Download graphforge/constraints/__init__.py from nithin04/graphforge-openenv: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/spaces/nithin04/graphforge-openenv/resolve/main/graphforge/constraints/__init__.py
- Command line
-
hf download hf://spaces/nithin04/graphforge-openenv/graphforge/constraints/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/nithin04/graphforge-openenv/resolve/main/graphforge/constraints/__init__.py
1.29 kB
| """Constraint vocabulary and dispatch. | |
| Three families (PROPOSAL.md §2.2): | |
| * Structural — node_exists, edge_exists, module_count, acyclic_imports, | |
| fan_in_max, fan_out_max, dag_depth_max, internal_only, … | |
| * Type / signature — signature_matches, return_type, arg_type, | |
| type_consistency, no_any_types, pure_function (TODO) | |
| * Behavioral / materialization — materializes, imports_resolve, | |
| type_checks, behavioral_test_passes, error_handling_present|absent | |
| Currently shipped: tier-0 subset of structural + ``materializes``. Additional | |
| kinds land as new discriminated members in :mod:`schema` and matching | |
| ``_check_*`` functions in :mod:`checker`. | |
| """ | |
| from graphforge.constraints.checker import ( | |
| SatisfactionReport, | |
| check, | |
| evaluate_all, | |
| ) | |
| from graphforge.constraints.schema import ( | |
| AcyclicImports, | |
| Constraint, | |
| EdgeExists, | |
| Materializes, | |
| ModuleCount, | |
| ModuleResponsibility, | |
| ModuleSizeMax, | |
| NodeAbsent, | |
| NodeExists, | |
| STRUCTURAL_KINDS, | |
| ) | |
| __all__ = [ | |
| "AcyclicImports", | |
| "Constraint", | |
| "EdgeExists", | |
| "Materializes", | |
| "ModuleCount", | |
| "ModuleResponsibility", | |
| "ModuleSizeMax", | |
| "NodeAbsent", | |
| "NodeExists", | |
| "STRUCTURAL_KINDS", | |
| "SatisfactionReport", | |
| "check", | |
| "evaluate_all", | |
| ] | |