Skip to content

Commit 97e5709

Browse files
committed
Use upstream pyparsing with mypy for now.
1 parent c7b3699 commit 97e5709

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

coverage_pyver_pragma/grammar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,10 @@ def __bool__(self) -> bool:
379379
GREATER_THAN = '>'
380380

381381
OPS = [LESS_THAN, LESS_THAN_EQUAL, GREATER_THAN, GREATER_THAN_EQUAL]
382-
COMPARATOR = Optional(oneOf(' '.join(OPS))).setResultsName("comparator") # type: ignore[operator]
382+
COMPARATOR = Optional(oneOf(' '.join(OPS))).setResultsName("comparator")
383383

384384
VERSION = Combine(CaselessLiteral("py") + Word(nums)).setResultsName("version")
385-
VERSION_TAG = Group(COMPARATOR + VERSION + Optional(PLUS)).setResultsName("version") # type: ignore[operator]
385+
VERSION_TAG = Group(COMPARATOR + VERSION + Optional(PLUS)).setResultsName("version")
386386
VERSION_TAG.setParseAction(VersionTag)
387387

388388
# Platforms (Windows, !Linux)

stubs.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
git+https://github.com/domdfcoding/pytest-regressions-stubs
2+
git+https://github.com/pyparsing/pyparsing

0 commit comments

Comments
 (0)