-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from econchick/ext-flag
Add support for other file extensions (pyi to start)
- Loading branch information
Showing
11 changed files
with
135 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Copyright 2020-2021 Lynn Root | ||
"""Explain yourself! Interrogate a codebase for docstring coverage.""" | ||
__author__ = "Lynn Root" | ||
__version__ = "1.6.0" | ||
__version__ = "1.7.0.dev0" | ||
__email__ = "lynn@lynnroot.com" | ||
__description__ = "Interrogate a codebase for docstring coverage." | ||
__uri__ = "https://interrogate.readthedocs.io" |
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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Copyright 2024 Lynn Root | ||
"""Sample stub with docs""" | ||
import typing | ||
|
||
from typing import overload | ||
|
||
|
||
class Foo: | ||
"""Foo class""" | ||
|
||
def __init__(self) -> None: | ||
"""init method of Foo class""" | ||
|
||
def __str__(self) -> None: | ||
"""a magic method.""" | ||
|
||
def _semiprivate(self) -> None: | ||
"""a semipriate method""" | ||
|
||
def __private(self) -> None: | ||
"""a private method""" | ||
|
||
def method_foo(self) -> None: | ||
"""this method does foo""" | ||
|
||
def get(self) -> None: | ||
"""this method gets something""" | ||
|
||
async def get(self) -> None: | ||
"""this async method gets something""" | ||
|
||
@property | ||
def prop(self) -> None: | ||
"""this method has a get property decorator""" | ||
|
||
@prop.setter | ||
def prop(self) -> None: | ||
"""this method has a set property decorator""" | ||
|
||
@prop.deleter | ||
def prop(self) -> None: | ||
"""this method as a del property decorator""" | ||
|
||
@typing.overload | ||
def module_overload(a: None) -> None: | ||
"""overloaded method""" | ||
|
||
@typing.overload | ||
def module_overload(a: int) -> int: | ||
"""overloaded method""" | ||
|
||
def module_overload(a: str) -> str: | ||
"""overloaded method implementation""" | ||
|
||
@overload | ||
def simple_overload(a: None) -> None: | ||
"""overloaded method""" | ||
|
||
@overload | ||
def simple_overload(a: int) -> int: | ||
"""overloaded method""" | ||
|
||
def simple_overload(a: str) -> str: | ||
"""overloaded method implementation""" | ||
|
||
def top_level_func() -> None: | ||
"""A top level function""" | ||
|
||
def inner_func() -> None: | ||
"""A inner function""" | ||
|
||
class Bar: | ||
"""Bar class""" | ||
|
||
def method_bar(self) -> None: | ||
"""a method that does bar""" | ||
|
||
class InnerBar: | ||
"""an inner class""" | ||
|
||
class _SemiprivateClass: | ||
"""a semiprivate class""" | ||
|
||
class __PrivateClass: | ||
"""a private class""" |
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