Update mythril_config.py - Remove TODO (#1814)

* Update mythril_config.py - Remove TODO

* Remove # type:ignore
pull/1817/head
Erlangshen219 12 months ago committed by GitHub
parent ecc79507ac
commit 90e0dd7097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      mythril/mythril/mythril_config.py

@ -199,8 +199,7 @@ class MythrilConfig:
def set_api_from_config_path(self) -> None: def set_api_from_config_path(self) -> None:
"""Set the RPC mode based on a given config file.""" """Set the RPC mode based on a given config file."""
config = ConfigParser(allow_no_value=False) config = ConfigParser(allow_no_value=False)
# TODO: Remove this after this issue https://github.com/python/mypy/issues/2427 is closed config.optionxform = str
config.optionxform = str # type:ignore
config.read(self.config_path, "utf-8") config.read(self.config_path, "utf-8")
if config.has_option("defaults", "dynamic_loading"): if config.has_option("defaults", "dynamic_loading"):
dynamic_loading = config.get("defaults", "dynamic_loading") dynamic_loading = config.get("defaults", "dynamic_loading")

Loading…
Cancel
Save