Commit Graph

8 Commits

Author SHA1 Message Date
971a0b1775 fix: get_variable default variables are not ObjectHolders (fixes #8936) 2021-07-02 17:14:44 +03:00
8f7343831b refactor: Refactor BothLibraries logic
This commit introduces a new type of `HoldableObject`: The
`SecondLevelHolder`. The primary purpose of this class is
to handle cases where two (or more) `HoldableObject`s are
stored at the same time (with one default object). The
best (and currently only) example here is the `BothLibraries`
class.
2021-06-26 12:49:35 +02:00
dd296f321b interpreterbase: Add evolve to KwargInfo
This works just like OptionKey.evolve, pass new keyword arguments to
override old ones, otherwise the original versions are copied to the new
one.
2021-06-22 09:12:54 -07:00
c2c7f7c9d7 holders: Ensure that InterpreterBase is the sole instance for (un)holderifying 2021-06-18 23:48:33 +02:00
8f997efc8b decorators: Add not_set_warning to KwargInfo 2021-06-18 23:48:33 +02:00
bad14b23d2 decorators: Fix typo 2021-06-18 23:48:33 +02:00
5bb75dc3af interpreterbase: Add deprecated_values and since_values to KwargInfo
This allows checking specific values that are added or deprecated, which
we do a surprising amount of. This works with both containers and scalar
values
2021-06-14 12:30:02 -07:00
e686545fce interpreter: Split decorators from interpreterbase.py 2021-06-11 10:42:18 +02:00