Skip to content

Clarify that the Headers class is a Sequence - #125

Merged
pgjones merged 1 commit into
python-hyper:masterfrom
pgjones:sequence
May 16, 2021
Merged

pgjones merged 1 commit into
python-hyper:masterfrom
pgjones:sequence

Conversation

@pgjones

@pgjones pgjones commented Dec 27, 2020

Copy link
Copy Markdown
Member

This is both in the docs (via the changelog) and by inheriting from
the Sequence ABC.

@bluetech bluetech left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Optionally, Sequence has an __iter__ mixin so you could remove the manual implementation if you want.

This is both in the docs (via the changelog) and by inheriting from
the Sequence ABC. As the Sequence ABC has a __iter__ method another is
not required.
@pgjones
pgjones merged commit 0f719f0 into python-hyper:master May 16, 2021
@pgjones
pgjones deleted the sequence branch May 16, 2021 09:40
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