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 would like to type hint that my custom term expects a control which has a certain type of path. E.G. only VirtualBrownianTree not UnsafeBrownianPath.
I'm not very experienced with the more advanced aspects of type hinting so perhaps there is a better way, or this is already possible? Any thought are much appreciated
The text was updated successfully, but these errors were encountered:
This seems reasonable to me! I'd be happy to take a PR adding this. Note that we don't yet insist on Python 3.12 and above, so I think we'd annotate this as something like
I would like to type hint that my custom term expects a control which has a certain type of path. E.G. only VirtualBrownianTree not UnsafeBrownianPath.
Ideally the code would look something like this:
I'm not sure if this is already possible, or would require a change to the code. My thought was to do something like the following:
I'm not very experienced with the more advanced aspects of type hinting so perhaps there is a better way, or this is already possible? Any thought are much appreciated
The text was updated successfully, but these errors were encountered: