WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 5c00559

Browse files
author
Benjamin Moody
committed
Config: declare type of the db_index_url attribute.
mypy (and likely other static analysis tools) will complain if an object attribute is used without being defined either in the class or the class's __init__ method. Declare the attribute here so that mypy knows it exists.
1 parent 83cdfaa commit 5c00559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wfdb/io/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Config(object):
2323
2424
"""
2525

26-
pass
26+
db_index_url: str
2727

2828

2929
# The configuration database index url. Uses PhysioNet index by default.

0 commit comments

Comments
 (0)