Skip to content

Commit

Permalink
Merge branch 'main' into line_numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
acoleman2000 authored Nov 14, 2023
2 parents 154af86 + 138e249 commit 3afd4b0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mypy-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mypy==1.6.1 # update pyproject.toml as well
mypy[mypyc]==1.7.0 # update pyproject.toml as well
black>=19.10b0
types-pkg_resources
types-requests
Expand Down
2 changes: 1 addition & 1 deletion mypy-stubs/mistune/scanner.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ from typing import (
from mistune._types import State
from typing_extensions import TypeAlias

MethodFunc: TypeAlias = Callable[["ScannerParser", Match, State], Any]
MethodFunc: TypeAlias = Callable[["ScannerParser", Match[str], State], Any]
RuleMethod = Tuple[Pattern[str], MethodFunc]
Lexicon = List[Tuple[Pattern[str], Tuple[str, RuleMethod]]]
TextParser = Callable[[str, State], str]
Expand Down
1 change: 0 additions & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ show_column_numbers = true
show_error_codes = true
pretty = true
warn_unreachable = True
new_type_inference = True
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[build-system]
requires = [
"setuptools>=45",
"setuptools>=50", # 50 is to match mypyc's minimum
"setuptools_scm[toml]>=8.0.4,<9",
'mypy==1.6.0', # update mypy-requirements as well
"black>=19.10b0",
'mypy[mypyc]==1.7.0', # update mypy-requirements as well
"black>=19.10b0,<23.12",
"types-pkg_resources",
"types-requests",
"types-dataclasses",
"importlib_resources>=1.4", # equivalent to Python 3.9
"ruamel.yaml>= 0.12.4, != 0.16.6, < 0.18",
"ruamel.yaml>=0.17.6, < 0.19",
"types-setuptools"
]
build-backend = "setuptools.build_meta"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ruamel.yaml >= 0.17.6, < 0.19
rdflib>= 4.2.2, < 8.0.0
mistune>=2.0.3,<2.1
CacheControl[filecache]>= 0.11.7, < 0.14
black<23.12
black>=19.10b0,<23.12
mypy_extensions
importlib_resources>=1.4
# ^^ equivalent to Python 3.9

0 comments on commit 3afd4b0

Please sign in to comment.