gootsaud / bike-riding

Inconsistent overridden method PYL-W0236
Bug risk
Major
a year agoa year old
Method '_peek_next' was expected to be 'non-async', found it instead as 'async'
 663    async def revindex(self) -> int:  # type: ignore
 664        return await self.length - self.index0
 665
 666    async def _peek_next(self) -> t.Any: 667        if self._after is not missing:
 668            return self._after
 669
Method 'nextitem' was expected to be 'non-async', found it instead as 'async'
 679        return await self._peek_next() is missing
 680
 681    @property
 682    async def nextitem(self) -> t.Union[t.Any, "Undefined"]: 683        rv = await self._peek_next()
 684
 685        if rv is missing:
Method 'last' was expected to be 'non-async', found it instead as 'async'
 675        return self._after
 676
 677    @property
 678    async def last(self) -> bool:  # type: ignore 679        return await self._peek_next() is missing
 680
 681    @property
Method 'revindex' was expected to be 'non-async', found it instead as 'async'
 660        return await self.length - self.index
 661
 662    @property
 663    async def revindex(self) -> int:  # type: ignore 664        return await self.length - self.index0
 665
 666    async def _peek_next(self) -> t.Any:
Method 'revindex0' was expected to be 'non-async', found it instead as 'async'
 656        return self._length
 657
 658    @property
 659    async def revindex0(self) -> int:  # type: ignore 660        return await self.length - self.index
 661
 662    @property