class-resolver icon indicating copy to clipboard operation
class-resolver copied to clipboard

🔍 Lookup classes and instantiate them with style

Results 5 class-resolver issues
Sort by recently updated
recently updated
newest added

Since `ClassResolver.from_subclasses` excludes classes from private modules by default, and the name of the module from which a Python script is invoked is replaced by `__main__`, classes defined there are...

This PR implements a pseudo-static type checker that takes a given dictionary to instantiate a given class and checks if it is correctly formatted. It raises an exception if it...

We use the synonym mechanism in OAK and many other projects, the docs for this are a bit buried. Also there appears to be magic that happens that can cause...

This is particularly useful when dealing with enums / `typing.Literal` as it generates normalization code which ensures the given type without having to resort to `typing.cast` and gives useful error...

`BaseResolver.subresolver()` allows for the resolver to be subsetted based on a list of keys. This might be useful for HPO scenarios.