-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allowed use of types.ModuleType * Allow module name override for stub files * Remove superfluous class module * Hard code module renaming * Address CR * Updated typeshed * Fix fine-grained tests * Fix whitespace
- Loading branch information
1 parent
77e3237
commit 73acdb8
Showing
18 changed files
with
80 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,3 @@ class int: | |
class str: pass | ||
class bool: pass | ||
class function: pass | ||
class module: pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
import typing | ||
|
||
T = typing.TypeVar('T') | ||
class list(typing.Generic[T], typing.Sequence[T]): pass | ||
|
||
class object: | ||
def __init__(self): pass | ||
class type: pass | ||
class function: pass | ||
class int: pass | ||
class str: pass | ||
class dict: pass | ||
class list: pass | ||
class set: pass | ||
class tuple: pass | ||
class BaseException: pass | ||
class StopIteration(BaseException): pass | ||
class StopAsyncIteration(BaseException): pass | ||
def iter(obj: typing.Any) -> typing.Any: pass | ||
def next(obj: typing.Any) -> typing.Any: pass | ||
class ellipsis: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
from typing import Any, Dict, Generic, TypeVar | ||
from typing import Any, Dict, Generic, TypeVar, Sequence | ||
from types import ModuleType | ||
|
||
T = TypeVar('T') | ||
S = TypeVar('S') | ||
|
||
class list(Generic[T], Sequence[T]): pass | ||
|
||
class object: | ||
def __init__(self) -> None: pass | ||
class module: | ||
__name__ = ... # type: str | ||
__file__ = ... # type: str | ||
__dict__ = ... # type: Dict[str, Any] | ||
class type: pass | ||
class function: pass | ||
class int: pass | ||
class str: pass | ||
class bool: pass | ||
class tuple: pass | ||
class dict(Generic[T, S]): pass | ||
class ellipsis: pass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
from typing import Generic, Sequence, TypeVar | ||
from types import ModuleType | ||
|
||
_T = TypeVar('_T') | ||
|
||
class object: | ||
def __init__(self) -> None: pass | ||
class module: pass | ||
class type: pass | ||
class function: pass | ||
class int: pass | ||
class str: pass | ||
class bool: pass | ||
class list(Generic[_T], Sequence[_T]): | ||
def append(self, x: _T): pass | ||
def extend(self, x: Sequence[_T]): pass | ||
def __add__(self, rhs: Sequence[_T]) -> list[_T]: pass | ||
class tuple: pass | ||
class ellipsis: pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
from typing import TypeVar | ||
from typing import TypeVar, Optional, List, Any, Generic, Sequence | ||
T = TypeVar('T') | ||
|
||
def coroutine(func: T) -> T: | ||
return func | ||
|
||
class bool: ... | ||
|
||
class ModuleType: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters