mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore(pylint): Remove top-level disable (#16589)
* chore(pylint): Remove top-level disable * Update examples.py * Update command.py Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
@@ -67,8 +67,9 @@ MAXIMUM_DATE = date.today()
|
||||
days_range = (MAXIMUM_DATE - MINIMUM_DATE).days
|
||||
|
||||
|
||||
# pylint: disable=too-many-return-statements, too-many-branches
|
||||
def get_type_generator(sqltype: sqlalchemy.sql.sqltypes) -> Callable[[], Any]:
|
||||
def get_type_generator( # pylint: disable=too-many-return-statements,too-many-branches
|
||||
sqltype: sqlalchemy.sql.sqltypes,
|
||||
) -> Callable[[], Any]:
|
||||
if isinstance(sqltype, sqlalchemy.dialects.mysql.types.TINYINT):
|
||||
return lambda: random.choice([0, 1])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user