Skip to content

Commit

Permalink
Merge pull request #176 from adafruit/pylint-fix
Browse files Browse the repository at this point in the history
Fixed pylint on latest version
  • Loading branch information
tekktrik committed Nov 8, 2022
2 parents 92f6fb9 + 5e4e55c commit e07e185
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion adafruit_ble/advertising/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
if TYPE_CHECKING:
from _bleio import ScanEntry

LazyObjectField_GivenClass = TypeVar("LazyObjectField_GivenClass")
LazyObjectField_GivenClass = TypeVar( # pylint: disable=invalid-name
"LazyObjectField_GivenClass"
)

except ImportError:
pass
Expand Down
6 changes: 2 additions & 4 deletions adafruit_ble/advertising/standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,9 @@ def __init__(self, service: Characteristic) -> None:
self._adt = 0x21
self._prefix = bytes(service.uuid)

def __get__(
def __get__( # pylint: disable=too-many-return-statements,too-many-branches
self, obj: Optional[Service], cls: Type[Service]
) -> Optional[
Union["ServiceData", memoryview]
]: # pylint: disable=too-many-return-statements,too-many-branches
) -> Optional[Union["ServiceData", memoryview]]:
if obj is None:
return self
# If not present at all and mutable, then we init it, otherwise None.
Expand Down

0 comments on commit e07e185

Please sign in to comment.