utils

resolve_python_identifier(ref: Annotated[str, AfterValidator(func=_is_absolute_identifier)]) Any[source]

Given some fully-qualified package.subpackage.Class identifier, return the referenced object, importing if needed.

Returns a node from noob.node.SPECIAL_NODES if match found

iscoroutinefunction_partial(f: Callable) TypeGuard[Callable[[...], Coroutine]][source]

Stolen from apscheduler, unwraps partials to test for coroutines

References

https://github.com/agronholm/apscheduler/blob/f4df139771b7741f58f0eb456f091d3f659555c1/src/apscheduler/util.py#L444