vpaeder / pymcp2221

A python driver for the Microchip MCP2221/MCP2221A USB 2.0 to I2C/UART protocol converters
https://pypi.org/project/pymcp2221
MIT License
5 stars 2 forks source link

use int instead of bytes as type hint. #7

Closed jremmet closed 1 year ago

jremmet commented 1 year ago

The i2c commands needs the address as int type. Otherwise it will raise errors like

TypeError: '<' not supported between instances of 'bytes' and 'int' TypeError: unsupported operand type(s) for <<: 'bytes' and 'int'

No functional change.