Skip to content

Commit 31714b2

Browse files
authored
PYSCAN-26: Refactor the type hints to work with Python 3.8 (#7)
1 parent f451f3e commit 31714b2

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/py_sonar_scanner/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
# along with this program; if not, write to the Free Software Foundation,
1818
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1919
#
20+
from __future__ import annotations
2021
import argparse
2122
import os
2223
import sys
2324
from typing import Union
24-
2525
import toml
2626

2727

src/py_sonar_scanner/environment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# along with this program; if not, write to the Free Software Foundation,
1818
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1919
#
20+
from __future__ import annotations
2021
import os
2122
import platform
2223
import shutil

src/py_sonar_scanner/scanner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# along with this program; if not, write to the Free Software Foundation,
1818
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1919
#
20+
from __future__ import annotations
2021
import logging
2122
from logging import Logger
2223
import threading

0 commit comments

Comments
 (0)