typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

Collection of library stubs for Python, with static types

Results 615 typeshed issues
Sort by recently updated
recently updated
newest added

Since mypy now supports `__slots__` checking, we can add `__slots__` to stubs. This will allow us to correctly raise `Something is not in __slots__` when assigning extra attributes. Right now...

project: policy

Consider the following code: ```python from abc import ABC, abstractmethod import mailbox class MailboxFactory(ABC): @abstractmethod def open(self) -> mailbox.Mailbox: ... class MboxFactory(MailboxFactory): def __init__(self, path: str) -> None: self.path =...

Release: https://pypi.org/pypi/fpdf2/2.8.5 Homepage: https://py-pdf.github.io/fpdf2/ Repository: https://github.com/PyFPDF/fpdf2 Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/fpdf2 Diff: https://github.com/PyFPDF/fpdf2/compare/2.8.4...2.8.5 Stubsabot analysis of the diff between the two releases: - 5 public Python files have been added: `fpdf/data/__init__.py`, `fpdf/data/color_profiles/__init__.py`,...

bot: stubsabot

The type annotations for `itertools.starmap` allow any iterables for any function arguments: https://github.com/python/typeshed/blob/11c7821a79a8ab7e1982f3ab506db16f1c4a22a9/stdlib/itertools.pyi#L112-L116 This means I can do something like: ```python def myfunc(x: int, y: int): return x + y...

for @eugeneliukindev questions: * why the SyncWorker.wait integer return type (found nothing in commit https://github.com/eugeneliukindev/typeshed/commit/f23abec8a85c483873b8eed9cf3ce63aa5715a87)? notes on things I would like to modify: * match stdlib wsgiref in that start_response...

I suggest using preferred option (`Never`) to indicate the bottom type. Using `NoReturn` is still popular (and more well known) I think because the types in stdlib use it (one...

project: policy

Currently, stubtest checks the stdlib and all third-party stubs daily and will create a new issue if there are discrepancies. While this is fine for the stdlib, it gets annoying...

project: infrastructure

## Description Fixes #14168 This PR adds type overloads to `TarFile.__init__` to prevent the runtime `TypeError` that occurs when both `name` and `fileobj` are `None`. ## Problem Currently, the type...