-
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve declaration of private vs public objects in stubs
- Loading branch information
Showing
4 changed files
with
31 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from . import ConverterType | ||
from . import _ConverterType | ||
|
||
def optional(converter: ConverterType) -> ConverterType: ... | ||
def optional(converter: _ConverterType) -> _ConverterType: ... |
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,5 +1,5 @@ | ||
from typing import Union | ||
from . import Attribute, FilterType | ||
from . import Attribute, _FilterType | ||
|
||
def include(*what: Union[type, Attribute]) -> FilterType: ... | ||
def exclude(*what: Union[type, Attribute]) -> FilterType: ... | ||
def include(*what: Union[type, Attribute]) -> _FilterType: ... | ||
def exclude(*what: Union[type, Attribute]) -> _FilterType: ... |
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,8 +1,8 @@ | ||
from typing import Container, Iterable, List, Union | ||
from . import ValidatorType | ||
from . import _ValidatorType | ||
|
||
def instance_of(type: type) -> ValidatorType: ... | ||
def provides(interface) -> ValidatorType: ... | ||
def optional(validator: Union[ValidatorType, List[ValidatorType]]) -> ValidatorType: ... | ||
def in_(options: Container) -> ValidatorType: ... | ||
def and_(*validators: Iterable[ValidatorType]) -> ValidatorType: ... | ||
def instance_of(type: type) -> _ValidatorType: ... | ||
def provides(interface) -> _ValidatorType: ... | ||
def optional(validator: Union[_ValidatorType, List[_ValidatorType]]) -> _ValidatorType: ... | ||
def in_(options: Container) -> _ValidatorType: ... | ||
def and_(*validators: Iterable[_ValidatorType]) -> _ValidatorType: ... |