From dc33c321d6f9e967a827ad3dadcbc6a55fb242c9 Mon Sep 17 00:00:00 2001 From: noah Date: Fri, 10 Dec 2021 11:04:08 +0100 Subject: [PATCH] replace "N/A" with "Nothing" in docstrings --- sherlock/notify.py | 14 +++++++------- sherlock/result.py | 2 +- sherlock/sherlock.py | 2 +- sherlock/sites.py | 4 ++-- sherlock/tests/all.py | 26 +++++++++++++------------- sherlock/tests/base.py | 8 ++++---- 6 files changed, 28 insertions(+), 28 deletions(-) diff --git a/sherlock/notify.py b/sherlock/notify.py index 8307fe5..e3e4abb 100644 --- a/sherlock/notify.py +++ b/sherlock/notify.py @@ -27,7 +27,7 @@ class QueryNotify(): results for this query. Return Value: - N/A. + Nothing. """ self.result = result @@ -48,7 +48,7 @@ class QueryNotify(): Default is None. Return Value: - N/A. + Nothing. """ return @@ -65,7 +65,7 @@ class QueryNotify(): results for this query. Return Value: - N/A. + Nothing. """ self.result = result @@ -86,7 +86,7 @@ class QueryNotify(): Default is None. Return Value: - N/A. + Nothing. """ return @@ -125,7 +125,7 @@ class QueryNotifyPrint(QueryNotify): color -- Boolean indicating whether to color terminal output Return Value: - N/A. + Nothing. """ # Colorama module's initialization. @@ -149,7 +149,7 @@ class QueryNotifyPrint(QueryNotify): of queries are about. Return Value: - N/A. + Nothing. """ title = "Checking username" @@ -175,7 +175,7 @@ class QueryNotifyPrint(QueryNotify): results for this query. Return Value: - N/A. + Nothing. """ self.result = result diff --git a/sherlock/result.py b/sherlock/result.py index e74921c..6e6ddc1 100644 --- a/sherlock/result.py +++ b/sherlock/result.py @@ -58,7 +58,7 @@ class QueryResult(): Default of None. Return Value: - N/A. + Nothing. """ self.username = username diff --git a/sherlock/sherlock.py b/sherlock/sherlock.py index 8b755da..ef2347b 100644 --- a/sherlock/sherlock.py +++ b/sherlock/sherlock.py @@ -64,7 +64,7 @@ class SherlockFuturesSession(FuturesSession): kwargs -- Keyword arguments. Return Value: - N/A. + Nothing. """ resp.elapsed = monotonic() - start diff --git a/sherlock/sites.py b/sherlock/sites.py index ad36eb3..de8eeec 100644 --- a/sherlock/sites.py +++ b/sherlock/sites.py @@ -46,7 +46,7 @@ class SiteInformation(): object for future use. Return Value: - N/A. + Nothing. """ self.name = name @@ -104,7 +104,7 @@ class SitesInformation(): default site list will be used. Return Value: - N/A. + Nothing. """ if data_file_path is None: diff --git a/sherlock/tests/all.py b/sherlock/tests/all.py index b7b7f91..3299c49 100644 --- a/sherlock/tests/all.py +++ b/sherlock/tests/all.py @@ -17,7 +17,7 @@ class SherlockDetectTests(SherlockBaseTest): self -- This object. Return Value: - N/A. + Nothing. Will trigger an assert if detection mechanism did not work as expected. """ @@ -44,7 +44,7 @@ class SherlockDetectTests(SherlockBaseTest): self -- This object. Return Value: - N/A. + Nothing. Will trigger an assert if detection mechanism did not work as expected. """ @@ -71,7 +71,7 @@ class SherlockDetectTests(SherlockBaseTest): self -- This object. Return Value: - N/A. + Nothing. Will trigger an assert if detection mechanism did not work as expected. """ @@ -98,7 +98,7 @@ class SherlockDetectTests(SherlockBaseTest): self -- This object. Return Value: - N/A. + Nothing. Will trigger an assert if detection mechanism did not work as expected. """ @@ -125,7 +125,7 @@ class SherlockDetectTests(SherlockBaseTest): self -- This object. Return Value: - N/A. + Nothing. Will trigger an assert if detection mechanism did not work as expected. """ @@ -152,7 +152,7 @@ class SherlockDetectTests(SherlockBaseTest): self -- This object. Return Value: - N/A. + Nothing. Will trigger an assert if detection mechanism did not work as expected. """ @@ -181,7 +181,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self -- This object. Return Value: - N/A. + Nothing. Will trigger an assert if detection mechanism did not work as expected. """ @@ -199,7 +199,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self -- This object. Return Value: - N/A. + Nothing. Will trigger an assert if detection mechanism did not work as expected. """ @@ -217,7 +217,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self -- This object. Return Value: - N/A. + Nothing. Will trigger an assert if detection mechanism did not work as expected. """ @@ -235,7 +235,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self -- This object. Return Value: - N/A. + Nothing. Will trigger an assert if detection mechanism did not work as expected. """ @@ -253,7 +253,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self -- This object. Return Value: - N/A. + Nothing. Will trigger an assert if detection mechanism did not work as expected. """ @@ -271,7 +271,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self -- This object. Return Value: - N/A. + Nothing. Will trigger an assert if detection mechanism did not work as expected. """ @@ -288,7 +288,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self -- This object. Return Value: - N/A. + Nothing. Will trigger an assert if we do not have total coverage. """ diff --git a/sherlock/tests/base.py b/sherlock/tests/base.py index 190aaaa..20605d2 100644 --- a/sherlock/tests/base.py +++ b/sherlock/tests/base.py @@ -23,7 +23,7 @@ class SherlockBaseTest(unittest.TestCase): self -- This object. Return Value: - N/A. + Nothing. """ #This ignores the ResourceWarning from an unclosed SSLSocket. @@ -97,7 +97,7 @@ class SherlockBaseTest(unittest.TestCase): or non-existence. Return Value: - N/A. + Nothing. Will trigger an assert if Username does not have the expected existence state. """ @@ -154,7 +154,7 @@ class SherlockBaseTest(unittest.TestCase): or non-existence. Return Value: - N/A. + Nothing. Runs tests on all sites using the indicated detection algorithm and which also has test vectors specified. Will trigger an assert if Username does not have the expected @@ -208,7 +208,7 @@ class SherlockBaseTest(unittest.TestCase): self -- This object. Return Value: - N/A. + Nothing. Counts up all Sites with full test data available. Will trigger an assert if any Site does not have test coverage. """