Skip to content

Commit 1b6e6b8

Browse files
committed
typing
1 parent d9a3bab commit 1b6e6b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

prime_backup/mcdr/command/nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import dataclasses
22
import json
33
import re
4-
from typing import Optional, List
4+
from typing import Optional, List, Dict, Any
55

66
from mcdreforged.api.all import ArgumentNode, Text, ParseResult, QuotableText, IllegalArgument, CommandContext, InvalidEnumeration
77
from typing_extensions import override
@@ -80,7 +80,7 @@ def parse(self, text: str) -> ParseResult:
8080
text: str = (result.value or '').strip()
8181
for pattern in self.__patterns:
8282
if (match := pattern.fullmatch(text)) is not None:
83-
groups = match.groupdict()
83+
groups: Dict[str, Any] = match.groupdict()
8484
if (start := groups.get('start')) is not None:
8585
start = int(start)
8686
if (end := groups.get('end')) is not None:

0 commit comments

Comments
 (0)