Skip to content

Commit 72293a5

Browse files
committed
Move DEFAULT_REALTYP_TO_COUNTERTYP to directive.py
Relocated the DEFAULT_REALTYP_TO_COUNTERTYP dictionary from proof_type.py to directive.py to improve module organization and reduce unnecessary imports.
1 parent a33704a commit 72293a5

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

sphinx_proof/directive.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,29 @@
1616
from sphinx.util.docutils import SphinxDirective
1717
from .nodes import unenumerable_node, NODE_TYPES
1818
from .nodes import proof_node
19-
from .proof_type import DEFAULT_REALTYP_TO_COUNTERTYP
2019

2120
logger = logging.getLogger(__name__)
2221

2322

23+
DEFAULT_REALTYP_TO_COUNTERTYP = {
24+
"axiom": "axiom",
25+
"theorem": "theorem",
26+
"lemma": "lemma",
27+
"algorithm": "algorithm",
28+
"definition": "definition",
29+
"remark": "remark",
30+
"conjecture": "conjecture",
31+
"corollary": "corollary",
32+
"criterion": "criterion",
33+
"example": "example",
34+
"property": "property",
35+
"observation": "observation",
36+
"proposition": "proposition",
37+
"assumption": "assumption",
38+
"notation": "notation",
39+
}
40+
41+
2442
class ElementDirective(SphinxDirective):
2543
"""A custom Sphinx Directive"""
2644

sphinx_proof/proof_type.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -118,21 +118,3 @@ class NotationDirective(ElementDirective):
118118
"assumption": AssumptionDirective,
119119
"notation": NotationDirective,
120120
}
121-
122-
DEFAULT_REALTYP_TO_COUNTERTYP = {
123-
"axiom": "axiom",
124-
"theorem": "theorem",
125-
"lemma": "lemma",
126-
"algorithm": "algorithm",
127-
"definition": "definition",
128-
"remark": "remark",
129-
"conjecture": "conjecture",
130-
"corollary": "corollary",
131-
"criterion": "criterion",
132-
"example": "example",
133-
"property": "property",
134-
"observation": "observation",
135-
"proposition": "proposition",
136-
"assumption": "assumption",
137-
"notation": "notation",
138-
}

0 commit comments

Comments
 (0)