File tree Expand file tree Collapse file tree 3 files changed +10
-14
lines changed Expand file tree Collapse file tree 3 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2021 Lucas Sargent, Eliiza
3+ Copyright (c) 2022 Lucas Sargent
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 22name = cloud-mappings
33version = 1.0.0
44author = Lucas Sargent
5- author_email = lucas.sargent@eliiza .com.au
5+ author_email = lucas.sargent@outlook .com
66description = MutableMapping interfaces for common cloud storage providers
77keywords = mutable dict aws s3 azure gcp
88long_description = file: README.md
Original file line number Diff line number Diff line change 11from .cloudstoragemapping import CloudMapping
22
33
4- def _parse_cloud_mapping_kwargs(kwargs):
5- cloud_mapping_kwargs = {}
6-
7- try:
8- cloud_mapping_kwargs["sync_initially"] = kwargs.pop("sync_initially")
9- except KeyError:
10- pass
11- try:
12- cloud_mapping_kwargs["read_blindly"] = kwargs.pop("read_blindly")
13- except KeyError:
14- pass
15-
4+ def _parse_cloud_mapping_kwargs(kwargs: dict):
5+ cloud_mapping_kwargs = dict(
6+ sync_initially=kwargs.pop("sync_initially", True),
7+ read_blindly=kwargs.pop("read_blindly", False),
8+ read_blindly_default=kwargs.pop("read_blindly_default", None),
9+ ordered_dumps_funcs=kwargs.pop("ordered_dumps_funcs", None),
10+ ordered_loads_funcs=kwargs.pop("ordered_loads_funcs", None),
11+ )
1612 return cloud_mapping_kwargs, kwargs
1713
1814
You can’t perform that action at this time.
0 commit comments