@@ -86,7 +86,7 @@ error[call-non-callable]: Object of type `Literal[5]` is not callable
8686 | ^^^^
8787 |
8888info: Union variant `Literal[5]` is incompatible with this call site
89- info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T : str ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
89+ info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
9090info: rule `call-non-callable` is enabled by default
9191
9292```
@@ -101,7 +101,7 @@ error[call-non-callable]: Object of type `PossiblyNotCallable` is not callable (
101101 | ^^^^
102102 |
103103info: Union variant `PossiblyNotCallable` is incompatible with this call site
104- info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T : str ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
104+ info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
105105info: rule `call-non-callable` is enabled by default
106106
107107```
@@ -116,7 +116,7 @@ error[missing-argument]: No argument provided for required parameter `b` of func
116116 | ^^^^
117117 |
118118info: Union variant `def f3(a : int , b : int ) -> int` is incompatible with this call site
119- info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T : str ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
119+ info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
120120info: rule `missing-argument` is enabled by default
121121
122122```
@@ -152,7 +152,7 @@ info: Overload implementation defined here
15215228 | return x + y if x and y else None
153153 |
154154info: Union variant `Overload[() -> None, (x : str , y : str ) -> str]` is incompatible with this call site
155- info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T : str ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
155+ info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
156156info: rule `no-matching-overload` is enabled by default
157157
158158```
@@ -176,7 +176,7 @@ info: Function defined here
1761768 | return 0
177177 |
178178info: Union variant `def f2(name : str ) -> int` is incompatible with this call site
179- info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T : str ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
179+ info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
180180info: rule `invalid-argument-type` is enabled by default
181181
182182```
@@ -199,8 +199,8 @@ info: Type variable defined here
199199 | ^^^^^^
20020014 | return 0
201201 |
202- info: Union variant `def f4[T: str ](x : T @f4 ) -> int` is incompatible with this call site
203- info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T : str ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
202+ info: Union variant `def f4[T](x : T @f4 ) -> int` is incompatible with this call site
203+ info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
204204info: rule `invalid-argument-type` is enabled by default
205205
206206```
@@ -227,7 +227,7 @@ info: Matching overload defined here
227227info: Non-matching overloads for function `f5`:
228228info: () -> None
229229info: Union variant `Overload[() -> None, (x : str ) -> str]` is incompatible with this call site
230- info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T : str ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
230+ info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
231231info: rule `invalid-argument-type` is enabled by default
232232
233233```
@@ -242,7 +242,7 @@ error[too-many-positional-arguments]: Too many positional arguments to function
242242 | ^
243243 |
244244info: Union variant `def f1() -> int` is incompatible with this call site
245- info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T : str ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
245+ info: Attempted to call union type `(def f1 () -> int) | (def f2 (name : str ) -> int) | (def f3 (a : int , b : int ) -> int) | (def f4 [T ](x : T @f4 ) -> int) | Literal[5] | (Overload [() -> None , (x : str ) -> str ]) | (Overload [() -> None , (x : str , y : str ) -> str ]) | PossiblyNotCallable`
246246info: rule `too-many-positional-arguments` is enabled by default
247247
248248```
0 commit comments