Skip to content

Fix: Remove Duplicate Class Definitions#8

Open
jknndy wants to merge 1 commit intosn:mainfrom
jknndy:duplicateclass
Open

Fix: Remove Duplicate Class Definitions#8
jknndy wants to merge 1 commit intosn:mainfrom
jknndy:duplicateclass

Conversation

@jknndy
Copy link
Contributor

@jknndy jknndy commented Nov 8, 2025

In src/ydnatl/tags/lists.py, UnorderedList and OrderedList were defined twice:

  1. First as simple_tag_class() factory results (lines 5-6)
  2. Then as proper class definitions with custom functionality (lines 12 and 27)

The simple_tag_class() assignments were overwritten by the class definitions.

Fix:

Removed the duplicate simple_tag_class() assignments on lines 5-6. The classes are now only defined once via their class definitions, which include the custom with_items() method.

All tests passing

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.

1 participant