Open nineteendo opened 4 months ago
@erictraut, something else seems to be going on here:
import json
from typing import Any, Container, Literal, overload
@overload
def dumps(obj: Any, *, allow: Container[Literal["nan"]] = ()) -> str: ...
@overload
def dumps(obj: Any, *, allow: Container[Literal["inf"]] = ()) -> str: ...
def dumps(obj: Any, *, allow: Container[str] = ()) -> str:
return json.dumps(obj, allow_nan="nan" in allow or "inf" in allow)
The main issue is that the suggestion doesn't match the inferred type:
That just looks plain wrong.
let me take a look.
Environment data
Code Snippet
Expected behavior
I'm expecting a list of suggested features:
Actual behavior
I get no suggestions:
Logs