(version: str, *, platform: Platform | None)
| 1921 | |
| 1922 | @lru_cache(maxsize=None) |
| 1923 | def platform_headers(version: str, *, platform: Platform | None) -> Dict[str, str]: |
| 1924 | return { |
| 1925 | "X-Stainless-Lang": "python", |
| 1926 | "X-Stainless-Package-Version": version, |
| 1927 | "X-Stainless-OS": str(platform or get_platform()), |
| 1928 | "X-Stainless-Arch": str(get_architecture()), |
| 1929 | "X-Stainless-Runtime": get_python_runtime(), |
| 1930 | "X-Stainless-Runtime-Version": get_python_version(), |
| 1931 | } |
| 1932 | |
| 1933 | |
| 1934 | class OtherArch: |
no test coverage detected