docsig 0.53.0__tar.gz → 0.53.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: docsig
3
- Version: 0.53.0
3
+ Version: 0.53.1
4
4
  Summary: Check signature params for proper documentation
5
5
  Home-page: https://pypi.org/project/docsig/
6
6
  License: MIT
@@ -129,7 +129,8 @@ Commandline
129
129
  -o, --check-overridden check overridden methods
130
130
  -p, --check-protected check protected functions and classes
131
131
  -P, --check-property-returns check property return values
132
- -i, --ignore-no-params ignore docstrings where parameters are not documented
132
+ -i, --ignore-no-params ignore docstrings where parameters are not
133
+ documented
133
134
  -a, --ignore-args ignore args prefixed with an asterisk
134
135
  -k, --ignore-kwargs ignore kwargs prefixed with two asterisks
135
136
  -T, --ignore-typechecker ignore checking return values
@@ -221,7 +222,7 @@ It can be added to your .pre-commit-config.yaml as follows:
221
222
 
222
223
  repos:
223
224
  - repo: https://github.com/jshwi/docsig
224
- rev: v0.53.0
225
+ rev: v0.53.1
225
226
  hooks:
226
227
  - id: docsig
227
228
  args:
@@ -101,7 +101,8 @@ Commandline
101
101
  -o, --check-overridden check overridden methods
102
102
  -p, --check-protected check protected functions and classes
103
103
  -P, --check-property-returns check property return values
104
- -i, --ignore-no-params ignore docstrings where parameters are not documented
104
+ -i, --ignore-no-params ignore docstrings where parameters are not
105
+ documented
105
106
  -a, --ignore-args ignore args prefixed with an asterisk
106
107
  -k, --ignore-kwargs ignore kwargs prefixed with two asterisks
107
108
  -T, --ignore-typechecker ignore checking return values
@@ -193,7 +194,7 @@ It can be added to your .pre-commit-config.yaml as follows:
193
194
 
194
195
  repos:
195
196
  - repo: https://github.com/jshwi/docsig
196
- rev: v0.53.0
197
+ rev: v0.53.1
197
198
  hooks:
198
199
  - id: docsig
199
200
  args:
@@ -152,7 +152,12 @@ class Parent(_t.List["Parent"]):
152
152
  self._imports,
153
153
  )
154
154
  if func.isoverloaded:
155
- self._overloads[func.name] = func
155
+ if (
156
+ func.name not in self._overloads
157
+ or self._overloads[func.name].signature.rettype
158
+ == _RetType.NONE
159
+ ):
160
+ self._overloads[func.name] = func
156
161
  else:
157
162
  if func.name in self._overloads:
158
163
  func.overload(
@@ -8,4 +8,4 @@ Allows for access to the version internally without cyclic imports
8
8
  caused by accessing it through __init__.
9
9
  """
10
10
 
11
- __version__ = "0.53.0"
11
+ __version__ = "0.53.1"
@@ -65,7 +65,7 @@ maintainers = [
65
65
  name = "docsig"
66
66
  readme = "README.rst"
67
67
  repository = "https://github.com/jshwi/docsig"
68
- version = "0.53.0"
68
+ version = "0.53.1"
69
69
 
70
70
  [tool.poetry.dependencies]
71
71
  Sphinx = "^7.0.0"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes