Slide 79
Slide 79 text
弊社はさらに足している
[tool.mypy]
strict = true
warn_incomplete_stub = true
warn_unreachable = true
enable_error_code = [
# 型スタブの型不足を警告
# 到達しないコードを警告
"unused-awaitable",
"possibly-undefined",
# await のし忘れ
# 未代入の可能性がある変数
"redundant-cast",
"truthy-bool",
# 不要な cast
# __bool__ のない型の真偽値判定
"truthy-iterable",
"ignore-without-code",
# イテラブルをそのまま真偽値判定
# 理由コードなしの type: ignore
"mutable-override",
"exhaustive-match",
# 可変な属性のオーバーライド
# match 文の網羅漏れ
"redundant-self",
# 不要な self 型注釈
]
strict の先にも、まだ足せるチェックがある
79