pyre-check icon indicating copy to clipboard operation
pyre-check copied to clipboard

Guard use of `dict[str, str]` for Python 3.8

Open stroxler opened this issue 1 year ago • 0 comments

Summary: Github tests caught another too-new-to-use feature in our Python code: you cannot directly subscript builtin containers like dict until 3.9.

In this case since there's no runtime need for the annotation, we can use from __future__ import annotations to work around the problem.

Differential Revision: D56821982

stroxler avatar May 01 '24 13:05 stroxler