Skip to content

Here is a working stub for the chardet package from PyPI #1707

Closed

Description

from typing import Dict, Text, Union

def detect(byte_str:Union[bytes,str]) -> Dict[Text, Text]: ...

into chardet.pyi.

Works for Python3. For Python2 we might need to handle unciode strings somehow, but I'm struggling with that.

Activity

  1. ju-sh commented on Feb 10, 2020

    @ju-sh
    Contributor

    @srittau Hi. Is chardet stub available yet? If not can we start working on it?

  2. srittau commented on Feb 10, 2020

    @srittau
    Collaborator

    Contributions are welcome! I don't think we have chardet in typeshed yet.

  3. ju-sh commented on Feb 10, 2020

    @ju-sh
    Contributor

    @srittau Cool. Can we use this issue or is it better to create a new one?

  4. srittau commented on Feb 10, 2020

    @srittau
    Collaborator

    This issue is fine for discussing the stub, although details should be discussed in the PR once it is opened.

  5. ju-sh commented on Feb 11, 2020

    @ju-sh
    Contributor

    @srittau Made a tiny part of the stub. Partial. Can you have a look? #3734

  6. srittau commented on Aug 26, 2020

    @srittau
    Collaborator

    We are closing all third-party stub requests issues without recent activity. We still welcome pull requests that add these to typeshed, although distributing the stubs with the the third-party package itself is preferable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: requestOUTDATED! Request to add stubs for a new package to typeshed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions