docsig 0.44.0__tar.gz → 0.44.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.44.0
3
+ Version: 0.44.1
4
4
  Summary: Check signature params for proper documentation
5
5
  Home-page: https://pypi.org/project/docsig/
6
6
  License: MIT
@@ -540,7 +540,7 @@ It can be added to your .pre-commit-config.yaml as follows:
540
540
 
541
541
  repos:
542
542
  - repo: https://github.com/jshwi/docsig
543
- rev: v0.44.0
543
+ rev: v0.44.1
544
544
  hooks:
545
545
  - id: docsig
546
546
  args:
@@ -512,7 +512,7 @@ It can be added to your .pre-commit-config.yaml as follows:
512
512
 
513
513
  repos:
514
514
  - repo: https://github.com/jshwi/docsig
515
- rev: v0.44.0
515
+ rev: v0.44.1
516
516
  hooks:
517
517
  - id: docsig
518
518
  args:
@@ -43,8 +43,13 @@ class Parent(_t.List[_Function]):
43
43
  self._path = f"{path}:" if path is not None else ""
44
44
  overloads = []
45
45
  returns = None
46
+ parent_comments, parent_disabled = directives.get(
47
+ node.lineno, ([], [])
48
+ )
46
49
  for subnode in node.body:
47
50
  comments, disabled = directives.get(subnode.lineno, ([], []))
51
+ comments.extend(parent_comments)
52
+ disabled.extend(parent_disabled)
48
53
  if isinstance(subnode, _ast.FunctionDef):
49
54
  func = _Function(
50
55
  subnode,
@@ -7,4 +7,4 @@ Contains the version of this package.
7
7
  Allows for access to the version internally without cyclic imports
8
8
  caused by accessing it through __init__.
9
9
  """
10
- __version__ = "0.44.0"
10
+ __version__ = "0.44.1"
@@ -72,7 +72,7 @@ maintainers = [
72
72
  name = "docsig"
73
73
  readme = "README.rst"
74
74
  repository = "https://github.com/jshwi/docsig"
75
- version = "0.44.0"
75
+ version = "0.44.1"
76
76
 
77
77
  [tool.poetry.dependencies]
78
78
  Pygments = "^2.13.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
File without changes
File without changes