Skip to content

Commit b128382

Browse files
committed
Remove unused importlib-metadata dependency
1 parent 7fbf55a commit b128382

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ requires-python = ">=3.10"
1515
dependencies = [
1616
'markdown-it-py>=1,<5',
1717
'tomli >=1.1.0; python_version < "3.11"',
18-
'importlib-metadata >=3.6.0; python_version < "3.10"',
1918
]
2019
readme = "README.md"
2120
classifiers = [

src/mdformat/renderer/_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def escape_square_brackets(text: str, used_refs: Iterable[str]) -> str:
231231
enclosure_start: int | None = None
232232
while True:
233233
bracket_match = RE_SQUARE_BRACKET.search(text, pos)
234-
if not bracket_match: # pragma: >=3.10 cover
234+
if not bracket_match:
235235
if enclosure_start is not None:
236236
escape_before_pos.append(enclosure_start)
237237
break

0 commit comments

Comments
 (0)