Path 1: 17005 calls (0.99)

'argument' (4422) 'variable' (4054) 'function' (3501) 'class' (1518) 'module' (1437) 'file' (1119) 'attr' (920) 'const' (34)

'self' (1634) 'x' (359) '__init__' (322) 'a' (206) 'i' (190) 'value' (180) '_' (173) 'arg' (154) 'cls' (146) 'y' (139)

AssignName (8389) FunctionDef (3447) ClassDef (1518) Module (1119) ImportFrom (854) Keyword (637) Import (583) AssignAttr (298) Unknown (72) AsyncFunc...

1def _check_name(self, node_type: str, name: str | None, node: nodes.NodeNG) -> None:
2        """Check whether a name is using non-ASCII characters."""
3
4        if name is None:
5            # For some nodes i.e. *kwargs from a dict, the name will be empty
6            return
7
8        if not str(name).isascii():
9            type_label = constants.HUMAN_READABLE_TYPES[node_type]
10            args = (type_label.capitalize(), name)
11
12            msg = "non-ascii-name"
13
14            # Some node types have customized messages
15            if node_type == "file":
16                msg = "non-ascii-file-name"
17            elif node_type == "module":
18                msg = "non-ascii-module-import"
19
20            self.add_message(msg, node=node, args=args, confidence=interfaces.HIGH)
            

Path 2: 126 calls (0.01)

'argument' (126)

None (126)

Keyword (126)

None (126)

1def _check_name(self, node_type: str, name: str | None, node: nodes.NodeNG) -> None:
2        """Check whether a name is using non-ASCII characters."""
3
4        if name is None:
5            # For some nodes i.e. *kwargs from a dict, the name will be empty
6            return
7
8        if not str(name).isascii():
9            type_label = constants.HUMAN_READABLE_TYPES[node_type]
10            args = (type_label.capitalize(), name)
11
12            msg = "non-ascii-name"
13
14            # Some node types have customized messages
15            if node_type == "file":
16                msg = "non-ascii-file-name"
17            elif node_type == "module":
18                msg = "non-ascii-module-import"
19
20            self.add_message(msg, node=node, args=args, confidence=interfaces.HIGH)
            

Path 3: 37 calls (0.0)

'variable' (15) 'argument' (12) 'function' (6) 'attr' (3) 'class' (1)

'łol' (15) 'áéíóú' (3) 'úóíéá' (3) 'not_okay_defaułt' (2) 'p_or_kw_not_økay' (2) 'kw_arg_not_økay' (2) 'umlaut_ä' (2) 'loł' (1) 'fåling' (1) 'sayНello...

AssignName (26) FunctionDef (6) Keyword (3) ClassDef (1) AssignAttr (1)

1def _check_name(self, node_type: str, name: str | None, node: nodes.NodeNG) -> None:
2        """Check whether a name is using non-ASCII characters."""
3
4        if name is None:
5            # For some nodes i.e. *kwargs from a dict, the name will be empty
6            return
7
8        if not str(name).isascii():
9            type_label = constants.HUMAN_READABLE_TYPES[node_type]
10            args = (type_label.capitalize(), name)
11
12            msg = "non-ascii-name"
13
14            # Some node types have customized messages
15            if node_type == "file":
16                msg = "non-ascii-file-name"
17            elif node_type == "module":
18                msg = "non-ascii-module-import"
19
20            self.add_message(msg, node=node, args=args, confidence=interfaces.HIGH)
            

Path 4: 13 calls (0.0)

'module' (13)

'fürimma' (3) 'łos' (2) 'bäd' (2) 'systëm' (1) 'fürimma.submodule' (1) 'main_module.fürimma' (1) 'not_økay' (1) 'functiøn' (1) 'føl' (1)

Import (8) ImportFrom (5)

1def _check_name(self, node_type: str, name: str | None, node: nodes.NodeNG) -> None:
2        """Check whether a name is using non-ASCII characters."""
3
4        if name is None:
5            # For some nodes i.e. *kwargs from a dict, the name will be empty
6            return
7
8        if not str(name).isascii():
9            type_label = constants.HUMAN_READABLE_TYPES[node_type]
10            args = (type_label.capitalize(), name)
11
12            msg = "non-ascii-name"
13
14            # Some node types have customized messages
15            if node_type == "file":
16                msg = "non-ascii-file-name"
17            elif node_type == "module":
18                msg = "non-ascii-module-import"
19
20            self.add_message(msg, node=node, args=args, confidence=interfaces.HIGH)
            

Path 5: 1 calls (0.0)

'file' (1)

'non_ascii_name_loł' (1)

Module (1)

1def _check_name(self, node_type: str, name: str | None, node: nodes.NodeNG) -> None:
2        """Check whether a name is using non-ASCII characters."""
3
4        if name is None:
5            # For some nodes i.e. *kwargs from a dict, the name will be empty
6            return
7
8        if not str(name).isascii():
9            type_label = constants.HUMAN_READABLE_TYPES[node_type]
10            args = (type_label.capitalize(), name)
11
12            msg = "non-ascii-name"
13
14            # Some node types have customized messages
15            if node_type == "file":
16                msg = "non-ascii-file-name"
17            elif node_type == "module":
18                msg = "non-ascii-module-import"
19
20            self.add_message(msg, node=node, args=args, confidence=interfaces.HIGH)