You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: Due to this bug, lintPython() is commented out in checkRelease() in npm-scripts.mjs. Also, in CI file, npm run lint:node is used instead of npm run lint to avoid this issue.
$ npm run lint:python
> [email protected] lint:python
> node npm-scripts.mjs lint:python
npm-scripts [INFO] [lint:python] lintPython()
npm-scripts [INFO] [lint:python] executeCmd(): cd worker && python3.10 -m flake8 && cd ..
npm-scripts [INFO] [lint:python] executeCmd(): cd worker && python3.10 -m mypy . && cd ..
channel.py:67: error: "object" has no attribute "close" [attr-defined]
channel.py:74: error: "object" has no attribute "read" [attr-defined]
channel.py:94: error: "object" has no attribute "write" [attr-defined]
Found 3 errors in 1 file (checked 5 source files)
Offending code is this (one of them):
ifself._writerisnotNone:
self._writer.close()
Note that self._writer is defined as follows:
self._writer=Union[StreamWriter, None]
However, in theory, we are checking that it's not None but ¯_(ツ)_/¯
The text was updated successfully, but these errors were encountered:
NOTE: Due to this bug,
lintPython()
is commented out incheckRelease()
innpm-scripts.mjs
. Also, in CI file,npm run lint:node
is used instead ofnpm run lint
to avoid this issue.Offending code is this (one of them):
Note that
self._writer
is defined as follows:However, in theory, we are checking that it's not
None
but ¯_(ツ)_/¯The text was updated successfully, but these errors were encountered: