Skip to content

Commit 3afd4b0

Browse files
authored
Merge branch 'main' into line_numbers
2 parents 154af86 + 138e249 commit 3afd4b0

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

mypy-requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mypy==1.6.1 # update pyproject.toml as well
1+
mypy[mypyc]==1.7.0 # update pyproject.toml as well
22
black>=19.10b0
33
types-pkg_resources
44
types-requests

mypy-stubs/mistune/scanner.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ from typing import (
1616
from mistune._types import State
1717
from typing_extensions import TypeAlias
1818

19-
MethodFunc: TypeAlias = Callable[["ScannerParser", Match, State], Any]
19+
MethodFunc: TypeAlias = Callable[["ScannerParser", Match[str], State], Any]
2020
RuleMethod = Tuple[Pattern[str], MethodFunc]
2121
Lexicon = List[Tuple[Pattern[str], Tuple[str, RuleMethod]]]
2222
TextParser = Callable[[str, State], str]

mypy.ini

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ show_column_numbers = true
55
show_error_codes = true
66
pretty = true
77
warn_unreachable = True
8-
new_type_inference = True

pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[build-system]
22
requires = [
3-
"setuptools>=45",
3+
"setuptools>=50", # 50 is to match mypyc's minimum
44
"setuptools_scm[toml]>=8.0.4,<9",
5-
'mypy==1.6.0', # update mypy-requirements as well
6-
"black>=19.10b0",
5+
'mypy[mypyc]==1.7.0', # update mypy-requirements as well
6+
"black>=19.10b0,<23.12",
77
"types-pkg_resources",
88
"types-requests",
99
"types-dataclasses",
1010
"importlib_resources>=1.4", # equivalent to Python 3.9
11-
"ruamel.yaml>= 0.12.4, != 0.16.6, < 0.18",
11+
"ruamel.yaml>=0.17.6, < 0.19",
1212
"types-setuptools"
1313
]
1414
build-backend = "setuptools.build_meta"

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ruamel.yaml >= 0.17.6, < 0.19
33
rdflib>= 4.2.2, < 8.0.0
44
mistune>=2.0.3,<2.1
55
CacheControl[filecache]>= 0.11.7, < 0.14
6-
black<23.12
6+
black>=19.10b0,<23.12
77
mypy_extensions
88
importlib_resources>=1.4
99
# ^^ equivalent to Python 3.9

0 commit comments

Comments
 (0)