mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
Use self for first method parameter
This commit is contained in:
parent
73cf0cb3d9
commit
855c1a12da
|
@ -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()
|
||||
|
|
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user