102 Commits (93c11f249495c4af4a88206cebefef3ecf0f3228)

Author SHA1 Message Date
Xavier Claessens 93c11f2494 typed_kwargs: Remove feature_validator as it's not currently used 2 years ago
Xavier Claessens 0f67913dee typed_kwargs: Extend since_values and deprecated_values for types 2 years ago
Eli Schwartz 314382d6ff
handle meson_version after parsing but before invalid project() kwargs 2 years ago
Eli Schwartz 878c1604e6
handle meson_version even when the build file fails to parse 2 years ago
Xavier Claessens f0dc61a764 interpreter: Add testcase..endtestcase clause support 2 years ago
Charles Brunet 5dbe49aa33 prevent unhandled exception for operations on None 2 years ago
Eli Schwartz a21af43200
micro-optimize: define typing-only objects in TYPE_CHECKING 2 years ago
Eli Schwartz 680b5ff819
treewide: add future annotations import 2 years ago
Dylan Baker eaf365cb3e decorators: don't unsort sorted values for printing 2 years ago
Dylan Baker c2e392d78d interpreter: add a feature_validator to KwargInfo 2 years ago
Dylan Baker a5d547e0d9
pylint: enable useless-return 2 years ago
Eli Schwartz e27653499a add option to typed_kwargs that allows unknown kwargs through 2 years ago
Eli Schwartz 78bf1ec56e
fix obscure crash on unbound variable 2 years ago
Dylan Baker 25a3eff797 interpreterbase: fix type annotations for KwargInfo::since_values 2 years ago
Eli Schwartz c1aeb2f7e4
typed_kwargs: support dict/list as "new since" types 2 years ago
Eli Schwartz 1c52ac4e15
move various imports into TYPE_CHECKING blocks for neatness 3 years ago
Eli Schwartz e5c7dc199a
typing: use forward reference for types defined later in file 3 years ago
Zbigniew Jędrzejewski-Szmek 8afdecb039 Reword message in warning 3 years ago
Zbigniew Jędrzejewski-Szmek 087e7943d0 Reword misleading warning 3 years ago
Peter Lesslie d771fc7d0b Add support for multiline f-strings 3 years ago
Eli Schwartz c231c4bd2a
move a bunch of imports into TYPE_CHECKING blocks 3 years ago
Eli Schwartz a009eacc65
treewide: string-quote the first argument to T.cast 3 years ago
Eli Schwartz 187dc656f4
merge various TYPE_CHECKING blocks into one 3 years ago
Eli Schwartz d39b330075 clean up FeatureCheck signature to move location to use time 3 years ago
Eli Schwartz 2b04e8c5e5 remove useless kwarg that was never used 3 years ago
Eli Schwartz fec7265b5c
flake8: use plain strings instead of f-strings when no variables used 3 years ago
Eli Schwartz c0b8e02d9f
FeatureNew: add mypy type annotations for subproject arg 3 years ago
Eli Schwartz 3990dc6d64 flake8: fix indentation style 3 years ago
Eli Schwartz 4b351aef26
first pass at migrating to dataclasses 3 years ago
Dylan Baker 283c65578d decorators: fold some duplicated code into a closure 3 years ago
Dylan Baker f5d961f127 add message option to since_values and deprecated_values 3 years ago
Dylan Baker 930cbdb86d Add deprecated_message and since_message to KwargInfo 3 years ago
Dylan Baker 82136da933 interpreterbase/decorators: Fix types of deprecated_values and since_values 3 years ago
Eli Schwartz a21c7d54fb
fix stray typo 3 years ago
Eli Schwartz 4b2c54569d
clean up function signatures in preparation for dataclasses 3 years ago
Dylan Baker 762c504612 typed_kwargs: use | for type unions, not , 3 years ago
Dylan Baker ecc47d67a9 typed_kwargs: provide better error messages for wrong container types 3 years ago
Dylan Baker 1f6351461c typed_kwargs: move some closures around to increase code clarity 3 years ago
Eli Schwartz fae7a70292
FeatureDeprecated: add a notice summary of future deprecations 3 years ago
Eli Schwartz 8dbb0ee476
Feature kwargs decorator: automatically report the nodes which trigger an issue 3 years ago
Eli Schwartz 7a033c7887
add location support to feature checks 3 years ago
Eli Schwartz 038b31e72b
various manual conversion of percent-formatted strings to f-strings 3 years ago
Eli Schwartz 384151c541 migrate python 3.5 compatible superclass variable annotations to 3.6 3 years ago
Eli Schwartz f4b91c4306 Revert "mark a couple of typing-only imports as noqa, to appease pyflakes" 3 years ago
Eli Schwartz 8947352889 fix various flake8 whitespace errors 3 years ago
Daniel Mensinger 2d8da3cb11 interpreter: Fix missing featuer check (fixes #9425) 3 years ago
Christian Clauss a5020857f3 Fix typos discovered by codespell 3 years ago
Xavier Claessens 709d151eb9 typed_kwargs: Fix when ContainerTypeInfo is used in a tuple 3 years ago
Daniel Mensinger dfec4385a7 interpreter: Move RangeHolder out of interpreterbase to interpreter 3 years ago
Daniel Mensinger af0587cb49 interpreter: Holderify arrays and dicts 3 years ago