Skip to content

Commit

Permalink
Flake8 and pylance fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonwatts committed Apr 25, 2024
1 parent eec1a9c commit fc1899e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions func_adl/util_ast.py
Expand Up @@ -5,7 +5,7 @@
import sys
import tokenize
from collections import defaultdict
from dataclasses import dataclass, is_dataclass
from dataclasses import is_dataclass
from types import ModuleType
from typing import Any, Callable, Dict, Generator, List, Optional, Tuple, Union, cast

Expand Down Expand Up @@ -331,7 +331,7 @@ def visit_Name(self, node: ast.Name) -> Any:
return as_literal(v)

if is_dataclass(v):
return as_literal(v)
return ast.Constant(value=v, kind=None)

return node

Expand Down

0 comments on commit fc1899e

Please sign in to comment.