You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying out the code in the terminology section of the sample above , but there was no description of how we should specifically declare type Name and Description, which took me a bit of time.
Finally, I found out that it works fine by declaring them as:
from typing import NewType
Name = NewType("Name", str)
Description = NewType("Description", str)
https://injector.readthedocs.io/en/stable/terminology.html
I was trying out the code in the terminology section of the sample above , but there was no description of how we should specifically declare type
Name
andDescription
, which took me a bit of time.Finally, I found out that it works fine by declaring them as:
(ref.#144)
But, I feel that this should be written in the Injection section of the sample.
The text was updated successfully, but these errors were encountered: