We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, my issue is similar to #3421.
class PageObject: logger = logging.getLogger(__name__) @overload def __init__(self, *, driver: Driver): ... @overload def __init__(self, *, by: Tuple[By, str], driver: Driver): ... @overload def __init__(self, *, context: WebElement): ... @overload def __init__(self, *, by: Tuple[By, str], parent: PageObject): ... @overload def __init__(self, *, parent: PageObject): ... def __init__( self, *, by: Optional[Tuple[By, str]] = None, context: Optional[WebElement] = None, parent: Optional[PageObject] = None, driver: Optional[Driver] = None, ) -> None: # Some code...
class IabCategories(PageObject): def __init__(self, *, by: Tuple[By, str], parent: PageObject): super().__init__(by=by, parent=parent) # Error here # Some code...
E1125: Missing mandatory keyword argument 'driver' in method call (missing-kwoa)
If I'm right, no error must be raised. These overloads are here to help mypy. If I remove them, pylint is ok but not mypy.
pylint 2.5.2 astroid 2.4.1 Python 3.7.2 (default, Mar 26 2019, 11:28:28) [GCC 5.4.0 20160609] pylint 2.5.2 astroid 2.4.1 Python 3.7.2 (default, Mar 26 2019, 11:28:28) [GCC 5.4.0 20160609] pylint 2.5.2 astroid 2.4.1 Python 3.7.2 (default, Mar 26 2019, 11:28:28) [GCC 5.4.0 20160609] pylint 2.5.2 astroid 2.4.1 Python 3.7.2 (default, Mar 26 2019, 11:28:28) [GCC 5.4.0 20160609]
The text was updated successfully, but these errors were encountered:
missing-kwoa is no longer emitted when dealing with overload func…
missing-kwoa
4ded890
…tions Close #3655
2a883cb
…tions (#3673) Close #3655
@PCManticore Thank you.
Sorry, something went wrong.
PCManticore
Successfully merging a pull request may close this issue.
Hi, my issue is similar to #3421.
Code Sample
Current behavior
Expected behavior
If I'm right, no error must be raised. These overloads are here to help mypy. If I remove them, pylint is ok but not mypy.
pylint --version output
The text was updated successfully, but these errors were encountered: