Server IP : 192.64.118.117 / Your IP : 3.144.229.52 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/typing/tests/data/reveal/ |
Upload File : |
from collections.abc import Callable from typing import Any import numpy as np AR: np.ndarray[Any, Any] func_float: Callable[[np.floating[Any]], str] func_int: Callable[[np.integer[Any]], str] reveal_type(np.get_printoptions()) # E: TypedDict reveal_type(np.array2string( # E: str AR, formatter={'float_kind': func_float, 'int_kind': func_int} )) reveal_type(np.format_float_scientific(1.0)) # E: str reveal_type(np.format_float_positional(1)) # E: str reveal_type(np.array_repr(AR)) # E: str reveal_type(np.array_str(AR)) # E: str reveal_type(np.printoptions()) # E: contextlib._GeneratorContextManager with np.printoptions() as dct: reveal_type(dct) # E: TypedDict