aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/_typing.py
AgeCommit message (Collapse)AuthorFilesLines
2022-06-08typing: replace ImmutableSetProtocol with typing.AbstractSetDylan Baker1-39/+0
Which does the same thing, but is a builtin and is more accurate
2021-10-27fix various flake8 whitespace errorsEli Schwartz1-1/+1
2021-09-07summary: fix dependenciesPaolo Bonzini1-0/+3
Dependencies are currently printed as [<mesonbuild.mlog.AnsiDecorator object at 0x7faa85aeac70>, ' ', <mesonbuild.mlog.AnsiDecorator object at 0x7faa85aeab50>] This was introduced in commit adb1b2f3f6ad54b346348ec6e5b8d96f2f7ba0a6, due to an incorrect type annotation on the AnsiText constructor. Fix both the annotation and the usage. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-06-05typing: mlog use StringProtocolDaniel Mensinger1-0/+3
2021-06-02adding a _typing moduleDylan Baker1-0/+114
this is a place that *must* only be imported inside a if typing.TYPE_CHECKING block. It is a mixture of smoothing over thinigs that moved from typing_extensions to typing in later python versions and useful but typing only code. This makes typing_extensions required for python versions older than 3.8 *when running mypy*. typing_extensions should *only* be imported inside an `if typing.TYPE_CHECKING` block (include the new _typing.py module) to ensure that it doesn't become a runtime dependency