Updated typehints
This commit is contained in:
@ -103,7 +103,7 @@ class Blueprint(flask.Blueprint):
|
|||||||
# Commit everything
|
# Commit everything
|
||||||
db.GLOBAL.commit()
|
db.GLOBAL.commit()
|
||||||
|
|
||||||
def boop(self, name: str) -> [int, int]:
|
def boop(self, name: str):
|
||||||
"""
|
"""
|
||||||
Boops `name`.
|
Boops `name`.
|
||||||
"""
|
"""
|
||||||
@ -186,7 +186,7 @@ class Blueprint(flask.Blueprint):
|
|||||||
|
|
||||||
return self._totalBoops[name]
|
return self._totalBoops[name]
|
||||||
|
|
||||||
def get24hBoops(self, name):
|
def get24hBoops(self, name) -> int:
|
||||||
"""
|
"""
|
||||||
Calculates how many boops `name` has received in the past 24h.
|
Calculates how many boops `name` has received in the past 24h.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user