Skip to content

Commit c0addd5

Browse files
authored
Merge pull request #40 from enter-at/fix/validator_imports
remove marshmallow usage in type hint
2 parents 676c5bd + 4bb14cf commit c0addd5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lambda_handlers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
BadRequestError,
77
InternalServerError,
88
)
9+
from .version import __version__ # noqa
910
from .handlers import HTTPHandler, LambdaHandler, http_handler # noqa
1011
from .response import cors_headers, response_builder # noqa
1112
from .formatters import input_format, output_format # noqa

lambda_handlers/validators/marshmallow_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MarshmallowValidator(Validator):
1616
def validate(
1717
self,
1818
instance: Any,
19-
schema: marshmallow.Schema,
19+
schema: 'marshmallow.Schema',
2020
) -> Tuple[Any, Union[Dict[str, Any], List[Any]]]:
2121

2222
if not marshmallow:

0 commit comments

Comments
 (0)