mirror of https://github.com/rusefi/opendbc.git
pre-commit: autoupdate hooks #908
This commit is contained in:
parent
5880fbbccf
commit
7d23b4c01b
|
@ -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/'
|
||||
|
|
|
@ -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")]
|
||||
|
|
Loading…
Reference in New Issue