Skip to content

Commit

Permalink
style: modern typing in files.py
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Sep 17, 2024
1 parent 2ec8c75 commit 91c9c4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/darker/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

import inspect
from typing import TYPE_CHECKING, Collection, Optional, Tuple
from typing import TYPE_CHECKING, Collection

from black import (
DEFAULT_EXCLUDES,
Expand All @@ -23,7 +23,7 @@
from darker.formatters.base_formatter import BaseFormatter


def find_pyproject_toml(path_search_start: Tuple[str, ...]) -> Optional[str]:
def find_pyproject_toml(path_search_start: tuple[str, ...]) -> str | None:
"""Find the absolute filepath to a pyproject.toml if it exists"""
path_project_root = find_project_root(path_search_start)
path_pyproject_toml = path_project_root / "pyproject.toml"
Expand Down

0 comments on commit 91c9c4e

Please sign in to comment.