Fix find_pyproject_toml type hint (#1495)

This commit is contained in:
Ralf Schmitt 2020-06-15 17:56:16 +02:00 committed by GitHub
parent 4ccc8c86f5
commit b2c13de490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -267,7 +267,7 @@ def supports_feature(target_versions: Set[TargetVersion], feature: Feature) -> b
return all(feature in VERSION_TO_FEATURES[version] for version in target_versions) return all(feature in VERSION_TO_FEATURES[version] for version in target_versions)
def find_pyproject_toml(path_search_start: str) -> Optional[str]: def find_pyproject_toml(path_search_start: Iterable[str]) -> Optional[str]:
"""Find the absolute filepath to a pyproject.toml if it exists""" """Find the absolute filepath to a pyproject.toml if it exists"""
path_project_root = find_project_root(path_search_start) path_project_root = find_project_root(path_search_start)
path_pyproject_toml = path_project_root / "pyproject.toml" path_pyproject_toml = path_project_root / "pyproject.toml"