Skip to content

Commit 21b4411

Browse files
authored
[chore]: Remove some ruff noqa (new version requirement) (#3504)
1 parent 751adaf commit 21b4411

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

samtranslator/sdk/resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class SamResource:
1212
with any CloudFormation constructs, like DependsOn, Conditions etc.
1313
"""
1414

15-
type = None # noqa: A003
15+
type = None
1616
properties: Dict[str, Any] = {} # TODO: Replace `Any` with something more specific
1717

1818
def __init__(self, resource_dict: Dict[str, Any]) -> None:

samtranslator/sdk/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def iterate(self, resource_types: Optional[Set[str]] = None) -> Iterator[Tuple[s
3939
if needs_filter:
4040
yield logicalId, resource
4141

42-
def set(self, logical_id: str, resource: Union[SamResource, Dict[str, Any]]) -> None: # noqa: A003
42+
def set(self, logical_id: str, resource: Union[SamResource, Dict[str, Any]]) -> None:
4343
"""
4444
Adds the resource to dictionary with given logical Id. It will overwrite, if the logical_id is already used.
4545

samtranslator/third_party/py27hash/hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Hash:
3333

3434
@staticmethod
3535
@lru_cache(maxsize=2048)
36-
def hash(value): # type: ignore[no-untyped-def] # noqa: A003
36+
def hash(value): # type: ignore[no-untyped-def]
3737
"""
3838
Returns a Python 2.7 hash for a value.
3939

0 commit comments

Comments
 (0)