Fix PEP8 issues with latest pycodestyle (#6636)

This commit is contained in:
Aditya Toshniwal authored and GitHub committed 2023-07-31 18:14:39 +05:30
1 parent 2aea5b41ad
commit a1c7265c41
12 files changed
+18 -18

No files matched your search

@@ -914,7 +914,7 @@ class SubscriptionView(PGChildNodeView, SchemaDiffObjectCompare):
drop_sql = kwargs.get('drop_sql', False)
if data:
if 'pub' in data and type(data['pub']) == str:
if 'pub' in data and isinstance(data['pub'], str):
# Convert publication details to list
data['pub'] = data['pub'].split(',,')
sql, name = self.get_sql(data=data, subid=oid)
@@ -598,7 +598,7 @@ SELECT EXISTS(
"""
# Format the schedule data. Convert the boolean array
jschedules = data.get('jschedules', {})
if type(jschedules) == dict:
if isinstance(jschedules, dict):
for schedule in jschedules.get('added', []):
format_schedule_data(schedule)
for schedule in jschedules.get('changed', []):
@@ -606,7 +606,7 @@ SELECT EXISTS(
has_connection_str = self.manager.db_info['pgAgent']['has_connstr']
jssteps = data.get('jsteps', {})
if type(jssteps) == dict:
if isinstance(jssteps, dict):
for changed_step in jssteps.get('changed', []):
status, res = format_step_data(
data['jobid'], changed_step, has_connection_str,