Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37ca397

Browse files
committed
restore 3.9 compatibility
1 parent a8f5536 commit 37ca397

4 files changed

Lines changed: 7 additions & 1 deletion

File tree

mypy_primer/git_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import os
24
import subprocess
35
from datetime import date

mypy_primer/globals.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import argparse
24
import contextvars
35
import multiprocessing

mypy_primer/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import asyncio
24
import re
35
import shlex

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ set -ex
33
isort --diff --check --quiet .
44
black --diff --check --quiet .
55
flake8 --max-line-length=100 --ignore=E203,W503 $(git ls-files | grep "py$")
6-
mypy -p mypy_primer --strict
6+
mypy -p mypy_primer --strict --python-version 3.9
77
# check we have unique projects
88
python -c 'from mypy_primer.projects import get_projects; get_projects()'

0 commit comments

Comments
 (0)