-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime error on Python 3.5.2 #363
Comments
Union[str, Any]にすると動作するようになります。Typeがよくない? |
|
ところでこれなぜCI上で再現しなかったのだろう? |
たしかにtypeだと動きます。 |
Type[***]のように引数取らないといけないってことですかね。 |
そのようですね。 しかしドキュメントには 3.5 の段階で次のようにもあるので、本来は現状でも動くはずです。
|
「Python 3.5 をサポート」と言っている以上は 3.5.x すべてで動いてほしいので、CIは 3.5.0 での動作を確認するのがよさそう? |
TypeError: descriptor '__subclasses__' of 'type' object needs an argument
あまりそこまでやっているリポジトリを見かけませんが、kmykさんがそうしたいなら私はOKです。 |
とりあえず 3.5.0 を指定する形でプルリクを出しました |
NOTE: once we did specify `3.5.0`, but CI fails to install this due to the too old setuptools.
Python3.5.2 で実行したんですが、以下のようなエラーで、動作しないです。
(最近online-judge-toolsアップデートしてなかった。)
def getter_with_load_details(name: str, type: Union[str, Type]) -> Callable:の型アノテーション止めると動作します。(Unionの方)
The text was updated successfully, but these errors were encountered: