python-wechaty icon indicating copy to clipboard operation
python-wechaty copied to clipboard

Invalid type annotation

Open wj-Mcat opened this issue 5 years ago • 1 comments

When I clone the code from master branch, Invalid type annotation occures.

File "/Users/wujingwujing/Downloads/temp/python-wechaty/src/wechaty/types.py", line 43, in Sayable: Invalid type annotation '<instance of module>' for return [invalid-annotation]
  Not a type
File "/Users/wujingwujing/Downloads/temp/python-wechaty/src/wechaty/types.py", line 43, in Sayable: Invalid type annotation '<instance of module>'
  Not a type [invalid-annotation]
  Not a type
File "/Users/wujingwujing/Downloads/temp/python-wechaty/src/wechaty/types.py", line 43, in Sayable: Invalid type annotation '<instance of module>' for reply_to [invalid-annotation]
  Not a type

For more details, see https://google.github.io/pytype/errors.html#invalid-annotation.
ninja: build stopped: subcommand failed

But this error don't occure at github action.

wj-Mcat avatar Mar 15 '20 02:03 wj-Mcat

I did not see the above information when I clone the repo, with:

git clone https://github.com/wechaty/python-wechaty

So is the problem still exist? Or how to reproduce the case?

fish-ball avatar Jul 19 '20 14:07 fish-ball