We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bfc3d5 commit 01639e2Copy full SHA for 01639e2
starlark/src/typing/callable.rs
@@ -83,7 +83,9 @@ impl Display for TyCallable {
83
write!(f, "typing.Callable")?;
84
} else {
85
write!(f, "typing.Callable[")?;
86
- if let Some(pos) = self.params().all_required_pos_only() {
+ if self.params().is_any() {
87
+ write!(f, "...")?;
88
+ } else if let Some(pos) = self.params().all_required_pos_only() {
89
write!(f, "[")?;
90
for (i, p) in pos.iter().enumerate() {
91
if i != 0 {
0 commit comments