setdoc 1.1.0__tar.gz → 1.2.0__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.4
2
2
  Name: setdoc
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: This project helps to set the doc string.
5
5
  Author-email: Johannes <johannes.programming@gmail.com>
6
6
  License: The MIT License (MIT)
@@ -24,7 +24,7 @@ keywords = []
24
24
  name = "setdoc"
25
25
  readme = "README.rst"
26
26
  requires-python = ">=3.11"
27
- version = "1.1.0"
27
+ version = "1.2.0"
28
28
 
29
29
  [project.license]
30
30
  file = "LICENSE.txt"
@@ -36,5 +36,10 @@ setdoc = SetDoc # legacy
36
36
 
37
37
  def basic(value: Any) -> Any:
38
38
  "This decorator sets the docstring of the given value to what is suggested by its name."
39
- value.__doc__ = Util.util.data["basic"][value.__name__]
39
+ value.__doc__ = getbasicdoc(value.__name__)
40
40
  return value
41
+
42
+
43
+ def getbasicdoc(name: str) -> str:
44
+ "This function returns the basic docstring for a given name."
45
+ return Util.util.data["basic"][name]
@@ -1,11 +1,31 @@
1
1
  [basic]
2
2
  __add__ = "This magic method implements self+other."
3
3
  __and__ = "This magic method implements self&other."
4
+ __bool__ = "This magic method implements bool(self)."
5
+ __contains__ = "This magic method implements other in self."
6
+ __delitem__ = "This magic method implements del self[key]."
4
7
  __divmod__ = "This magic method implements divmod(self, other)."
5
8
  __eq__ = "This magic method implements self==other."
6
9
  __floordiv__ = "This magic method implements self//other."
10
+ __format__ = "This magic method implements format(self, format_spec)."
7
11
  __ge__ = "This magic method implements self>=other."
12
+ __getitem__ = "This magic method implements self[key]."
8
13
  __gt__ = "This magic method implements self>other."
14
+ __iadd__ = "This magic method implements self+=other."
15
+ __iand__ = "This magic method implements self&=other."
16
+ __ifloordiv__ = "This magic method implements self//=other."
17
+ __ilshift__ = "This magic method implements self<<=other."
18
+ __imatmul__ = "This magic method implements self@=other."
19
+ __imod__ = "This magic method implements self%=other."
20
+ __imul__ = "This magic method implements self*=other."
21
+ __ior__ = "This magic method implements self|=other."
22
+ __ipow__ = "This magic method implements self**=other."
23
+ __irshift__ = "This magic method implements self>>=other."
24
+ __isub__ = "This magic method implements self-=other."
25
+ __itruediv__ = "This magic method implements self/=other."
26
+ __ixor__ = "This magic method implements self^=other."
27
+ __iter__ = "This magic method implements iter(self)."
28
+ __init__ = "This magic method initializes self."
9
29
  __int__ = "This magic method implements int(self)."
10
30
  __le__ = "This magic method implements self<=other."
11
31
  __len__ = "This magic method implements len(self)."
@@ -23,6 +43,7 @@ __radd__ = "This magic method implements other+self."
23
43
  __rand__ = "This magic method implements other&self."
24
44
  __rdivmod__ = "This magic method implements divmod(other, self)."
25
45
  __repr__ = "This magic method implements repr(self)."
46
+ __reversed__ = "This magic method implements reversed(self)."
26
47
  __rfloordiv__ = "This magic method implements other//self."
27
48
  __rlshift__ = "This magic method implements other<<self."
28
49
  __rmatmul__ = "This magic method implements other@self."
@@ -35,7 +56,9 @@ __rshift__ = "This magic method implements self>>other."
35
56
  __rsub__ = "This magic method implements other-self."
36
57
  __rtruediv__ = "This magic method implements other/self."
37
58
  __rxor__ = "This magic method implements other^self."
59
+ __setitem__ = "This magic method implements self[key]=value."
38
60
  __str__ = "This magic method implements str(self)."
39
61
  __sub__ = "This magic method implements self-other."
40
62
  __truediv__ = "This magic method implements self/other."
41
63
  __xor__ = "This magic method implements self^other."
64
+ data = "This property represents the underlying data."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: setdoc
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: This project helps to set the doc string.
5
5
  Author-email: Johannes <johannes.programming@gmail.com>
6
6
  License: The MIT License (MIT)
File without changes
File without changes
File without changes
File without changes
File without changes