HomePhabricator

[test framework] use an Enum instead of typing.Literal for PortName

Description

[test framework] use an Enum instead of typing.Literal for PortName

Summary:
typing.Literal is new in Python 3.8. We still support Python 3.6 and 3.7.

See D13659#304051

Test Plan: ninja check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13671

Details

Provenance
PiRKAuthored on Apr 11 2023, 16:15
PiRKPushed on Apr 12 2023, 11:52
Reviewer
Restricted Project
Differential Revision
D13671: [test framework] use an Enum instead of typing.Literal for PortName
Parents
rABCdc8a5c6c2655: [e.cash] Improve website description
Branches
Unknown
Tags
Unknown