When I use mypy --strict with a csv.writer(text_io), I get the error Call to untyped function "writer" in typed context. I expected that since csv.writer is part of the standard library, it would be typed in typeshed, but either it's not typed or I'm misreading:
def writer(csvfile, dialect=..., **fmtparams): ...
Is it possible to work around this error?
When I use
mypy --strictwith acsv.writer(text_io), I get the errorCall to untyped function "writer" in typed context. I expected that sincecsv.writeris part of the standard library, it would be typed in typeshed, but either it's not typed or I'm misreading:Is it possible to work around this error?