utils
Class info
🛈 DocStrings
Module containing helper functions.
InvalidParamError
Bases: ValueError
Exception raised for invalid params in method calls.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
Any
|
param value which caused the error |
required |
valid_options
|
Iterable
|
allowed options |
required |
Source code in prettyqt/utils/__init__.py
get_repr(_obj: Any, *args: Any, **kwargs: Any) -> str
Get a suitable repr string for an object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
_obj
|
Any
|
The object to get a repr for. |
required |
*args
|
Any
|
Arguments for the repr |
()
|
**kwargs
|
Any
|
Keyword arguments for the repr |
{}
|