Skip to content

Commit 57470ef

Browse files
committed
WIP: prepare to test
1 parent 5c2af85 commit 57470ef

File tree

6 files changed

+40
-1
lines changed

6 files changed

+40
-1
lines changed

python/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
poetry.lock
1+
poetry.lock
2+
dev.code-workspace
3+
.mypy_cache
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import utils as utils
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import extract as extract
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from typing import Any
2+
from .types import Context, Model, Resource
3+
4+
5+
class FPMLValidationError(Exception):
6+
def __init__(
7+
self,
8+
message: str,
9+
path: str,
10+
) -> None:
11+
self.path = path
12+
self.message = message
13+
14+
super().__init__(f"{self.message}. Path: {self.path}")
15+
16+
17+
def resolve_template(
18+
resource: Resource, template: Any, context: Context = None, model: Model | None = None
19+
):
20+
pass
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from typing import Any, TypedDict
2+
3+
4+
type Resource = dict[str, Any]
5+
type Context = dict[str, Any] | None
6+
7+
8+
class Model(TypedDict):
9+
choiceTypePaths: dict[str, list[str]]
10+
pathsDefinedElsewhere: dict[str, str]
11+
type2Parent: dict[str, str]
12+
path2Type: dict[str, str]
13+
14+
class UserInvocationTable:
15+
pass
File renamed without changes.

0 commit comments

Comments
 (0)