Skip to content

Don't warn if a type already exists.#692

Open
bje- wants to merge 2 commits intoDEAP:masterfrom
bje-:creator-patch
Open

Don't warn if a type already exists.#692
bje- wants to merge 2 commits intoDEAP:masterfrom
bje-:creator-patch

Conversation

@bje-
Copy link
Contributor

@bje- bje- commented Mar 28, 2023

Just as Python does not warn if you re-define a class, nor should- DEAP. The warning is annoying in some circumstances and I don't think it should be emitted.

@bje-
Copy link
Contributor Author

bje- commented May 19, 2023

Ping?

@fmder
Copy link
Member

fmder commented Jul 21, 2023

You are probably right, however, it changes the behaviour a bit too much. I'll think of a way to introduce that change slower.

@bje-
Copy link
Contributor Author

bje- commented Jul 21, 2023

IMHO, it's still an innocuous change. It doesn't change any program semantics, it just produces one less warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants