Skip to content

Commit

Permalink
refactor: remove types submodule import in root __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsavio committed Mar 15, 2020
1 parent b402cb2 commit ed23c60
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions lambda_handlers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
"""AWS Lambda handler decorators for formatting, validation, and response handling."""

from .types import APIGatewayProxyResult # noqa
from .errors import ( # noqa
LambdaError,
NotFoundError,
ForbiddenError,
BadRequestError,
InternalServerError,
EventValidationError,
)
from .version import __version__ # noqa
from .handlers import HTTPHandler, EventHandler, LambdaHandler # noqa
from .response import cors_headers, response_builder # noqa
from .formatters import input_format, output_format # noqa
1 change: 0 additions & 1 deletion lambda_handlers/handlers/tests/test_http_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def handler(self):
@http_handler()
def handler(event, context):
return {'user_id': 12}

return handler

def test_empty_body_validation(self, handler):
Expand Down
2 changes: 1 addition & 1 deletion lambda_handlers/response/tests/test_response_builder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from lambda_handlers import APIGatewayProxyResult
from lambda_handlers.types import APIGatewayProxyResult
from lambda_handlers.response.response_builder import (
ok,
created,
Expand Down

0 comments on commit ed23c60

Please sign in to comment.