export_factory_operation question
Hi:
How do i properly annotate a factory operation that returns a new instance of the interface where the factory operation is defined?
Below is an example of what i'm trying to do in a general way.
class IThing(ILocation):
"""Interface for Things."""
export_
name = exported(
@rename_
@operation_
@export_
def create_
"""Create a new Thing based on color (yeah, that makes no sense ;)."""
If i did: @export_
It looks like i need to do something after-the-fact, something like this:
params = IThing[
params['creates'] = IThing
IThing[
annotate_
I'm doing something wrong, I'm not sure what
Any assistance would be most appreciated.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Leonard Richardson
- Solved:
- Last query:
- Last reply: