• Michael Osthege's avatar
    Unify all config parameter types · d72eed70
    Michael Osthege 提交于
    - Classes instead of functions for the `IntParam`, `StrParam`, etc.
    - Strong signature for the `ConfigParam` type
    - `filter` was renamed to `apply`, because that's closer to its functionality
    - `is_valid` was renamed to `validate` to match `apply`
    - Both `apply` and `validate` callables can now be set for all params
    - `DeviceParam` was moved over to where the other config param types are defined
    - Already deprecated config parameters were removed
    - Add a few more tests
    d72eed70
test_config.py 3.2 KB