Skip to content

Commit 5445f71

Browse files
committed
chore:code formatting
1 parent d1cd2ef commit 5445f71

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/stubber/commands/publish_cmd.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Commandline interface to publish stubs.
3+
"""
4+
15
from typing import List, Union
26

37
import click

src/stubber/publish/stubpacker.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@
2323

2424
from stubber.publish.bump import bump_version
2525
from stubber.publish.enums import StubSource
26-
from stubber.publish.package import StubSource
2726
from stubber.publish.pypi import Version, get_pypi_versions
2827
from stubber.utils.config import CONFIG
2928
from stubber.utils.versions import clean_version
3029

3130

3231
Status = NewType("Status", Dict[str, Union[str, None]])
33-
StubSources = List[Tuple[str, Path]]
32+
StubSources = List[Tuple[StubSource, Path]]
3433

3534

3635
class StubPackage:
@@ -606,7 +605,7 @@ def are_package_sources_available(self) -> bool:
606605
# todo: below is a workaround for different types, but where is the source of this difference coming from?
607606
msg = (
608607
f"{self.package_name}: source '{name.value}' not found: {CONFIG.stub_path / path}"
609-
if isinstance(name, StubSource)
608+
if isinstance(name, StubSource) # type: ignore
610609
else f"{self.package_name}: source '{name}' not found: {CONFIG.stub_path / path}"
611610
)
612611
self.status["error"] = msg

0 commit comments

Comments
 (0)