xep_0084: fix typo and getters

"with" instead of "width"; wrong syntax for getters
This commit is contained in:
nicoco 2022-09-22 23:19:16 +02:00
parent 97b0c7ffac
commit e062181f84

View file

@ -80,16 +80,16 @@ class Info(ElementBase):
self._set_int('bytes', value)
def get_height(self) -> int:
self._get_int('height')
return self._get_int('height')
def set_height(self, value: int):
self._set_int('height', value)
def get_width(self) -> int:
self._get_int(self, 'width')
return self._get_int('width')
def set_width(self, value: int):
self._set_int('with', value)
self._set_int('width', value)
class Pointer(ElementBase):