0
1

More than 1 year has passed since last update.

Google Colaboratoryで型ヒントを使う方法

Posted at

Google Colaboratoryでは型ヒントが使えない

バージョン確認

!python --version
# Python 3.7.13

バージョンが3.7なので、annotationsをインポートする必要があります。

解決方法

ノートブックの最初で以下を記載します。

from __future__ import annotations
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1