Skip to content

Commit

Permalink
ignore attr classes
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias committed Oct 18, 2023
1 parent b551cfc commit 1d58f81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/aws/resoto_plugin_aws/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def __init__(self, name: str) -> None:
def execute(self, source: List[Json]) -> Optional[str]:
for k in source:
if k.get("Key") == self.name:
return k.get("Value", "")
return k.get("Value", "") # type: ignore
return None


Expand Down
2 changes: 1 addition & 1 deletion plugins/aws/test/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __call__(self, *args: Any, **kwargs: Any) -> Any:


def all_props_set(obj: AwsResourceType, ignore_props: Set[str]) -> None:
for field in fields(type(obj)):
for field in fields(type(obj)): # type: ignore
prop = field.name
if (
not prop.startswith("_")
Expand Down
2 changes: 1 addition & 1 deletion plugins/azure/test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def builder(


def all_props_set(obj: AzureResourceType, ignore_props: Optional[Set[str]] = None) -> None:
for field in fields(type(obj)):
for field in fields(type(obj)): # type: ignore
prop = field.name
if not prop.startswith("_") and prop not in {
"account",
Expand Down

0 comments on commit 1d58f81

Please sign in to comment.