Skip to content

Instantly share code, notes, and snippets.

View tannewt's full-sized avatar

Scott Shawcroft tannewt

View GitHub Profile
@tannewt
tannewt / _canio.pyi
Last active August 19, 2020 19:54 — forked from jepler/_canio.pyi
class Filter:
def __init__(self, address: int, *, extended: bool = False, mask: Optional[int] = None):
"""Construct a CanFilter with the given properties.
If mask is not None, then the filter is for any sender which matches all
the nonzero bits in mask. Otherwise, it matches exactly the given address.
If extended is true then only extended addresses are matched, otherwise
only standard addresses are matched.
"""