From 46f189a297e9abed28831fa95537e033e27abdc1 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Thu, 30 May 2024 11:02:22 -0400 Subject: [PATCH] fix(seautils): pylint fix --- .forgejo/workflows/config/.pylintrc | 3 ++- seautils/seautils.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/config/.pylintrc b/.forgejo/workflows/config/.pylintrc index 2dd59c9..94010af 100644 --- a/.forgejo/workflows/config/.pylintrc +++ b/.forgejo/workflows/config/.pylintrc @@ -18,4 +18,5 @@ import-self, relative-beyond-top-level, too-many-instance-attributes, - duplicate-code + duplicate-code, + too-many-nested-blocks diff --git a/seautils/seautils.py b/seautils/seautils.py index 76cc789..56bc5d8 100644 --- a/seautils/seautils.py +++ b/seautils/seautils.py @@ -101,14 +101,14 @@ class SeaUtils(commands.Cog): @commands.command(name='dig', aliases=['dnslookup', 'nslookup']) @commands.is_owner() - async def dig(self, ctx: commands.Context, name: str, type: str | None = None, server: str | None = None, port: int = 53) -> None: + async def dig(self, ctx: commands.Context, name: str, record_type: str | None = None, server: str | None = None, port: int = 53) -> None: """Retrieve DNS information for a domain. Uses `dig` to perform a DNS query. Will fall back to `nslookup` if `dig` is not installed on the system. `nslookup` does not provide as much information as `dig`, so only the `name` parameter will be used if `nslookup` is used. Will return the A, AAAA, and CNAME records for a domain by default. You can specify a different record type with the `type` parameter.""" command_opts: list[str | int] = ['dig'] - query_types = [type] if type else ['A', 'AAAA', 'CNAME'] + query_types: list[str] = [record_type] if record_type else ['A', 'AAAA', 'CNAME'] if server: command_opts.extend(['@', server]) for query_type in query_types: