Skip to content

Commit 16b3a17

Browse files
committed
Fix mypy typing issues
1 parent 36126f8 commit 16b3a17

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

aegea/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def user_config_file(self):
5050
return os.path.join(self.user_config_dir, "config.yml")
5151

5252
@property
53-
def __doc__(self):
53+
def __doc__(self): # type:ignore[override]
5454
sources = {0: "defaults", 1: "site configuration", 2: "user configuration"}
5555
doc = "Configuration sources:"
5656
for i, config_file in enumerate(self.config_files):

aegea/launch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ def instance_types(self, **kwargs): # type: ignore
325325
expect_error_codes(e, "DryRunOperation")
326326
logger.info("Dry run succeeded")
327327
exit()
328+
assert isinstance(instance, clients.ec2.Instance)
328329
instance.wait_until_running()
329330
if args.use_dns:
330331
dns_zone.update(args.hostname, instance.private_dns_name)

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ files = [
2323
]
2424
check_untyped_defs = true
2525
disallow_incomplete_defs = true
26+
exclude = ["aegea/util/aws/batch_events_lambda/app.py"]
2627

2728
[[tool.mypy.overrides]]
2829
module = ["babel.*", "boto3.*", "botocore.*", "ipwhois.*", "paramiko.*", "tweak.*", "uritemplate.*"]

0 commit comments

Comments
 (0)