Skip to content

add stubs for language models #3848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 28, 2020
Merged

add stubs for language models #3848

merged 6 commits into from
May 28, 2020

Conversation

ju-sh
Copy link
Contributor

@ju-sh ju-sh commented Mar 13, 2020

Added stubs for some language models.

As part of #1707

from typing import Tuple
from . import _LangModelType

Latin5_BulgarianCharToOrderMap: Tuple[int]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be Tuple[int, ...] (an arbitrary-length tuple), not Tuple[int] (a tuple of length 1).

Technically this seems to be about a 255-tuple, but I don't really think we need a Tuple[int, int, ... 255 times].

This also goes for the other Tuple[int]s in these stubs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed it.

@JelleZijlstra JelleZijlstra merged commit 851efa5 into python:master May 28, 2020
vishalkuo pushed a commit to vishalkuo/typeshed that referenced this pull request Jun 26, 2020
* add stubs for language models

* fix syntax error in __init__.pyi

* fix syntax error in universaldetector.pyi

* remove erroneous imports

* delete cli directory

* make tuple types variable length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants