pulumi/sdk/python
Nikhil Benesch c782a298a1
Make Output[T] covariant in Python SDK (#7483)
In short, this allows subtyping to correctly "propagate" through an Output;
if Cow is a subtype of Animal, this commit makes it so Output[Cow] is
treated as a subtype of Output[Animal].

Without this change, users of the Python SDK occasionally contend with a
confusing error message that is resolved by adding a call to
`.apply(lambda x: x)` to satisfy mypy.

Touches #3767.
Fix #6843.
2021-07-16 12:30:04 -07:00
..
cmd [sdk/python] Warn when a secret config is read as a non-secret (#7078) 2021-05-18 15:00:30 -07:00
dist Fix windows build 2020-12-07 15:58:30 -08:00
lib Make Output[T] covariant in Python SDK (#7483) 2021-07-16 12:30:04 -07:00
stubs Fix bug in semver usage by enabling typechecking (#6833) 2021-04-21 15:48:57 -04:00
.gitignore add .venv/ to python .gitignore to ignore when using PIPENV_VENV_IN_PROJECT=1 2019-06-19 12:43:04 -07:00
.pylintrc Support remote components in Python (#5375) 2020-09-30 14:09:20 -07:00
Makefile Remote component py SDK (#6715) 2021-04-15 14:49:51 -04:00
mypy.ini Fix bug in semver usage by enabling typechecking (#6833) 2021-04-21 15:48:57 -04:00
Pipfile [sdk/python] Fix linting errors due to missing types files (#7257) 2021-06-09 19:14:59 +03:00
python.go Avoid double-quailfying venv folder path (#6599) 2021-03-24 15:51:46 -04:00
python_test.go Update pip/setuptools/wheel in virtual environment (#5042) 2020-07-23 13:33:09 -07:00
shim_unix.go Add copyright notice 2020-12-07 14:17:45 -08:00
shim_windows.go Add copyright notice 2020-12-07 14:17:45 -08:00