Skip to content

Commit 9811134

Browse files
committed
- r Add quotes to type expression
1 parent 171dd93 commit 9811134

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

approval_utilities/utilities/wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ def __init__(self, generator: Callable[[], _T]):
3232
def get(self) -> _T:
3333
if not hasattr(self.local, "value"):
3434
self.local.value = self.generator()
35-
return cast(_T, self.local.value)
35+
return cast("_T", self.local.value)

ruff.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ ignore = [
1616
"COM812", # Trailing comma missing
1717
"RET505", # Unnecessary `...` after `return` statement
1818
"SIM300", # Yoda condition detected
19-
"TC006", # Add quotes to type expression in `typing.cast()`
2019
"TD006", # Invalid TODO capitalization: `...` should be `TODO`
2120

2221
]

0 commit comments

Comments
 (0)