Skip to content

Fix comparison, replacing is with ==#4

Open
boc-the-git wants to merge 1 commit intoCoreElectronics:mainfrom
boc-the-git:patch-1
Open

Fix comparison, replacing is with ==#4
boc-the-git wants to merge 1 commit intoCoreElectronics:mainfrom
boc-the-git:patch-1

Conversation

@boc-the-git
Copy link
Copy Markdown

/usr/local/lib/python3.13/site-packages/PiicoDev_RFID.py:72: SyntaxWarning: "is" with 'int' literal. Did you mean "=="?
assert max(asw) <= 1 and min(asw) >= 0 and len(asw) is 2, "asw must be a list of 1/0, length=2"

Running with the library on Python 3.13, it gives warnings about the comparison.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant