Skip to content

Commit

Permalink
bunch of tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
diceroll123 committed Dec 17, 2023
1 parent f112dbf commit 504f0cf
Show file tree
Hide file tree
Showing 3 changed files with 531 additions and 325 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from typing import Any


print((3.0).__add__(4.0)) # PLC2801
print((3.0).__sub__(4.0)) # PLC2801
print((3.0).__mul__(4.0)) # PLC2801
Expand All @@ -13,8 +16,12 @@
print((3.0).__str__()) # PLC2801
print((3.0).__repr__()) # PLC2801
print([1, 2, 3].__len__()) # PLC2801
print((1).__neg__()) # PLC2801


class Thing:
def __init__(self) -> None:
def __init__(self, stuff: Any) -> None:
super().__init__() # Ok
super().__class__(stuff=(1, 2, 3)) # Ok

blah = lambda: {"a": 1}.__delitem__("a") # Ok
Loading

0 comments on commit 504f0cf

Please sign in to comment.