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
pyright is a static python code typing checker written in TypeScript made by Microsoft.
It can get some errors that others can not:
$ pyright src/
No configuration file found.
stubPath /home/huan/wechaty/python-wechaty/typings is not a valid directory.
Assuming Python platform Linux
Searching for source files
Found 28 source files
/home/huan/wechaty/python-wechaty/src/wechaty/__init__.py
45:5 - error: "get_logger" is unknown import symbol (reportGeneralTypeIssues)
/home/huan/wechaty/python-wechaty/src/wechaty/user/contact_self.py
51:26 - error: Property setter value type is not assignable to the getter return type
Type "str | None" cannot be assigned to type "str"
Type "None" cannot be assigned to type "str" (reportPropertyTypeMismatch)
/home/huan/wechaty/python-wechaty/src/wechaty/user/room.py
284:39 - error: Cannot access member "contact_id" for type "UrlLink"
Member "contact_id" is unknown (reportGeneralTypeIssues)
/home/huan/wechaty/python-wechaty/src/wechaty/user/url_link.py
44:37 - error: Argument of type "str | None" cannot be assigned to parameter "__obj" of type "Sized" in function "len"
Type "str | None" cannot be assigned to type "Sized"
"__len__" is not present (reportGeneralTypeIssues)
47:52 - error: Argument of type "str | None" cannot be assigned to parameter "__obj" of type "Sized" in function "len"
Type "str | None" cannot be assigned to type "Sized"
"__len__" is not present (reportGeneralTypeIssues)
50:49 - error: Argument of type "str | None" cannot be assigned to parameter "__obj" of type "Sized" in function "len"
Type "str | None" cannot be assigned to type "Sized"
"__len__" is not present (reportGeneralTypeIssues)
6 errors, 0 warnings, 0 infos
Completed in 1.334sec
To be added.
The text was updated successfully, but these errors were encountered:
pyright is a static python code typing checker written in TypeScript made by Microsoft.
It can get some errors that others can not:
To be added.
The text was updated successfully, but these errors were encountered: