Use self for first method parameter

This commit is contained in:
Hugo van Kemenade 2022-04-10 20:08:22 +03:00
parent 73cf0cb3d9
commit 855c1a12da
2 changed files with 5 additions and 5 deletions

View File

@ -170,7 +170,7 @@ class TestImage:
temp_file = str(tmp_path / "temp.jpg")
class FP:
def write(a, b):
def write(self, b):
pass
fp = FP()

View File

@ -338,12 +338,12 @@ class IFDRational(Rational):
self._val = Fraction(value, denominator)
@property
def numerator(a):
return a._numerator
def numerator(self):
return self._numerator
@property
def denominator(a):
return a._denominator
def denominator(self):
return self._denominator
def limit_rational(self, max_denominator):
"""