pre-commit: autoupdate hooks #908

This commit is contained in:
Adeeb Shihadeh 2023-08-01 11:18:44 -07:00
parent 5880fbbccf
commit 7d23b4c01b
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
exclude: 'site_scons/'

View File

@ -40,7 +40,7 @@ cdef class CANPacker:
cpdef make_can_msg(self, name_or_addr, bus, values):
cdef int addr
if type(name_or_addr) == int:
if isinstance(name_or_addr, int):
addr = name_or_addr
else:
addr = self.name_to_address[name_or_addr.encode("utf8")]