Skip to content

Commit

Permalink
docs: update PyDoc
Browse files Browse the repository at this point in the history
PEP 257 -- Docstring Conventions
https://www.python.org/dev/peps/pep-0257/

PEP 8 -- Style Guide for Python Code
https://www.python.org/dev/peps/pep-0008/

[skip ci]
  • Loading branch information
johnnymillergh committed Nov 11, 2021
1 parent b254d41 commit e8a5292
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions home_guardian/common/debounce_throttle.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ def debounce(interval: float):
Decorator that will postpone a functions
execution until after wait seconds
have elapsed since the last time it was invoked.
https://gist.github.com/walkermatt/2871026
@param interval: interval time in seconds
@see https://gist.github.com/walkermatt/2871026
:param interval: interval time in seconds
"""

def decorator(fn):
Expand Down Expand Up @@ -47,10 +47,10 @@ def set(self, v):
def throttle(interval: float):
"""
Throttle decorator.
Python 中的防抖与节流 https://www.bilibili.com/read/cv13257868/
Python 中的防抖与节流 https://www.moyu.moe/articles/25/
@param interval: interval time in seconds
@see Python 中的防抖与节流 https://www.bilibili.com/read/cv13257868/
@see Python 中的防抖与节流 https://www.moyu.moe/articles/25/
:param interval: interval time in seconds
"""

# 下一次许可调用的时间,初始化为 0
Expand Down
3 changes: 1 addition & 2 deletions home_guardian/repository/model/base/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
class BaseModel(Model):
"""
Base model for persistence.
@see Models and Fields https://docs.peewee-orm.com/en/latest/peewee/models.html#model-inheritance
Models and Fields https://docs.peewee-orm.com/en/latest/peewee/models.html#model-inheritance
"""

class Meta:
Expand Down

0 comments on commit e8a5292

Please sign in to comment.