Skip to content
Myr

Merge pull request #1977 from thedrow/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Clarify duplicate name error

authored by David Lord · committed by GitHub · parents 976d25b, ffebd59 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/click/core.py+1 added-1 removed
2588 unmodified lines
25892590 for decl in decls:2591 if decl.isidentifier():2592 if name is not None:2593 raise TypeError("Name defined twice")2593 raise TypeError(f"Name '{name}' defined twice")2594 name = decl2595 else:2596 split_char = ";" if decl[:1] == "/" else "/"2597 if split_char in decl:
360 unmodified lines