Skip to content

Commit 7d21bf1

Browse files
committed
chore: ignore caches and update typing to 3.9
1 parent 8abe6c9 commit 7d21bf1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ dmypy.json
2222

2323
# misc
2424
.DS_Store
25+
26+
# Tests
27+
.*_cache/

Diff for: agntcy_iomapper/imperative.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import json
1919
import logging
20-
from typing import Any, Callable, Dict, Union
20+
from typing import Any, Callable, Union
2121

2222
import jsonschema
2323
from jsonpath_ng.ext import parse
@@ -28,12 +28,12 @@
2828

2929

3030
class ImperativeIOMapper(BaseIOMapper):
31-
field_mapping: Dict[str, Union[str, Callable]]
31+
field_mapping: dict[str, Union[str, Callable]]
3232
"""A dictionary for where the keys are fields of the output object
3333
and values are JSONPath (strings) representing how the mapping
3434
"""
3535

36-
def __init__(self, field_mapping: Dict[str, Union[str, Callable]]) -> None:
36+
def __init__(self, field_mapping: dict[str, Union[str, Callable]] | None) -> None:
3737
super().__init__()
3838
self.field_mapping = field_mapping
3939

0 commit comments

Comments
 (0)