ruff: enable RET/PIE/PLW
This commit is contained in:
parent
721a0cd3fc
commit
3cff067035
14 changed files with 80 additions and 75 deletions
|
@ -182,10 +182,9 @@ class MMS(NamedTuple):
|
|||
for (addr, _type) in self.addresses:
|
||||
if _type == 137:
|
||||
return addr
|
||||
else:
|
||||
# hmm, maybe return instead? but this probably shouldnt happen, means
|
||||
# something is very broken
|
||||
raise RuntimeError(f'No from address matching 137 found in {self.addresses}')
|
||||
# hmm, maybe return instead? but this probably shouldnt happen, means
|
||||
# something is very broken
|
||||
raise RuntimeError(f'No from address matching 137 found in {self.addresses}')
|
||||
|
||||
@property
|
||||
def from_me(self) -> bool:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue