-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate init image correctly #1649
Conversation
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing!
image: Union[np.ndarray, PIL.Image.Image], | ||
mask_image: Union[np.ndarray, PIL.Image.Image], | ||
image: Union[np.ndarray, PIL.Image.Image] = None, | ||
mask_image: Union[np.ndarray, PIL.Image.Image] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mask_image
wan't deprecated, was it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No but I don't want to change the order here - if image
becomes a keyword argument mask image has to become one as well.
SyntaxError: non-default argument follows default argument
Deprecate init image correctl
Deprecate init image correctl
Deprecate init image correctl
Currently one has to pass
image=...
because it is a required argument. This doesn't correctly deprecate the use ofinit_image
though.