Skip to content

Commit b054b51

Browse files
committed
As env variable not guaranteed, type hint needed to be updated
1 parent 167286b commit b054b51

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

exasol/toolbox/nox/_artifacts.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import sys
77
from collections.abc import Iterable
88
from pathlib import Path
9+
from typing import Optional
910

1011
import nox
1112
from nox import Session
@@ -187,7 +188,9 @@ def _prepare_coverage_xml(session: Session, source: Path) -> None:
187188
session.run(*command)
188189

189190

190-
def _upload_to_sonar(session: Session, sonar_token: str, config: Config) -> None:
191+
def _upload_to_sonar(
192+
session: Session, sonar_token: Optional[str], config: Config
193+
) -> None:
191194
command = [
192195
"pysonar",
193196
"--sonar-token",

0 commit comments

Comments
 (0)