{"id":22499,"library":"types-pyperclip","title":"Typeshed stubs for pyperclip","description":"Typing stubs for the pyperclip package, maintained as part of typeshed. Version 1.11.0.20260408 provides type annotations for pyperclip on Python >=3.10. Stubs are released as needed when pyperclip or typeshed changes; no fixed cadence.","status":"active","version":"1.11.0.20260408","language":"python","source_language":"en","source_url":"https://github.com/python/typeshed","tags":["typing","stubs","pyperclip","typeshed"],"install":[{"cmd":"pip install types-pyperclip","lang":"bash","label":"Install stubs"}],"dependencies":[{"reason":"runtime dependency; stubs are only used when pyperclip is installed","package":"pyperclip","optional":false}],"imports":[{"wrong":"import pyperclip","symbol":"pyperclip","correct":"from pyperclip-stubs import pyperclip"}],"quickstart":{"code":"import pyperclip\n\npyperclip.copy('Hello, world!')\ntext = pyperclip.paste()\nprint(text)  # prints \"Hello, world!\"","lang":"python","description":"Basic usage of pyperclip with type stubs. The stubs are automatically picked up by mypy/pyright when installed."},"warnings":[{"fix":"Install both: pip install pyperclip types-pyperclip","message":"types-pyperclip is a stub-only package. It does NOT replace pyperclip; you must install both pyperclip and types-pyperclip separately.","severity":"gotcha","affected_versions":"all"},{"fix":"Add type: ignore or assertions if needed for platform-specific code.","message":"Stubs may not cover all platform-specific behaviors (e.g., Windows vs macOS vs Linux). The type annotations are generic.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin to an older stubs version (e.g., pip install types-pyperclip==1.10.0.20250212) or upgrade Python to >=3.10.","message":"As of types-pyperclip 1.11.0.20260408, the stubs require Python >=3.10. Older Python versions (3.8, 3.9) are no longer supported.","severity":"breaking","affected_versions":">=1.11.0.20260408"}],"env_vars":null,"search_vec":"'1.11.0.20260408':17 '3.10':25 'annot':20 'cadenc':38 'chang':35 'fix':37 'maintain':11 'need':30 'packag':10 'part':13 'provid':18 'pyperclip':4,9,22,32,41 'python':24 'releas':28 'stub':2,6,26,40 'type':5,19,39 'typesh':1,15,34,42 'version':16","created_at":"2026-04-27T17:05:29.883811+00:00","updated_at":"2026-04-27T17:05:29.883811+00:00","problems":{"verify_error":"File \"<string>\", line 1\n    from pyperclip-stubs import pyperclip\n                  ^\nSyntaxError: invalid syntax"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.11.0.20260508","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/typeshed-internal/stub_uploader","docs":null,"changelog":"https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/pyperclip.md","pypi":"https://pypi.org/project/types-pyperclip/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}