Skip to content

Commit 981ceba

Browse files
committed
Update typing dependencies for mypy change
1 parent 31b707e commit 981ceba

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

scripts/import_backends.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from getpass import getpass
55
from typing import TYPE_CHECKING, Dict, List, Sequence, cast
66

7-
import github # type: ignore
7+
import github
88
from termcolor import cprint
99
from ticket_type import Ticket
1010

@@ -200,7 +200,7 @@ def description_text(self, ticket: Ticket) -> str:
200200

201201
return text.strip()
202202

203-
def get_or_create_milestone(self, title: str) -> github.Milestone:
203+
def get_or_create_milestone(self, title: str) -> github.Milestone.Milestone:
204204
try:
205205
return self.milestones[title]
206206
except KeyError:

scripts/requirements-dev.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ testfixtures==6.17.1
9999
# via flake8-isort
100100
toml==0.10.2
101101
# via mypy
102+
types-pyyaml==5.4.1
103+
# via -r ./scripts/typing/requirements.in
104+
types-termcolor==0.1.0
105+
# via -r ./scripts/typing/requirements.in
102106
typing-extensions==3.10.0.0
103107
# via
104108
# -r ./scripts/typing/requirements.in

scripts/typing/requirements.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
mypy
22
typing-extensions
3+
4+
types-PyYAML
5+
types-termcolor

0 commit comments

Comments
 (0)