Skip to content

Commit

Permalink
Fix typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Apr 24, 2024
1 parent 4410431 commit bd027f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mypy_boto3_builder/import_helpers/import_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ImportRecord:
)

def __init__(
self: Self,
self,
source: ImportString,
name: str = "",
alias: str = "",
Expand Down
2 changes: 1 addition & 1 deletion mypy_boto3_builder/parsers/shape_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _get_resource_names(self) -> list[str]:
return list(self._resources_shape["resources"].keys())

def _get_resource_shape(self, name: str) -> ResourceShape:
if not self._resources_shape:
if not self._resources_shape or "resources" not in self._resources_shape:
raise ShapeParserError("Resource shape not found")
try:
return self._resources_shape["resources"][name]
Expand Down

0 comments on commit bd027f8

Please sign in to comment.