Skip to content

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

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

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

Conversation

@bje-

@bje- bje- commented Mar 28, 2023

Copy link
Copy Markdown
Contributor

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-

bje- commented May 19, 2023

Copy link
Copy Markdown
Contributor Author

Ping?

@fmder

fmder commented Jul 21, 2023

Copy link
Copy Markdown
Member

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-

bje- commented Jul 21, 2023

Copy link
Copy Markdown
Contributor Author

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

@bje-

bje- commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

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

Ping?

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