Skip to content

Commit

Permalink
Fix new lint, sphinx issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ikappaki committed Dec 4, 2023
1 parent e02ec3c commit c894265
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sphinx~=4.4.0
sphinx~=4.4.0
sphinx-rtd-theme==1.3.0
2 changes: 1 addition & 1 deletion src/basilisp/lang/compiler/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def __init__(
self._func_ctx: Deque[FunctionContext] = collections.deque([])
self._is_quoted: Deque[bool] = collections.deque([])
self._opts = (
Maybe(opts).map(lmap.map).or_else_get(lmap.PersistentMap.empty()) # type: ignore
Maybe(opts).map(lmap.map).or_else_get(lmap.PersistentMap.empty()) # type: ignore[arg-type, unused-ignore]
)
self._recur_points: Deque[RecurPoint] = collections.deque([])
self._should_macroexpand = should_macroexpand
Expand Down
2 changes: 1 addition & 1 deletion src/basilisp/lang/compiler/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3527,7 +3527,7 @@ def _const_type_to_py_ast(form: IType, ctx: GeneratorContext) -> GeneratedPyAST:

ctor_args = []
ctor_arg_deps: List[ast.AST] = []
for field in attr.fields(tp): # type: ignore[arg-type]
for field in attr.fields(tp): # type: ignore[arg-type, misc, unused-ignore]
field_nodes = _const_val_to_py_ast(getattr(form, field.name, None), ctx)
ctor_args.append(field_nodes.node)
ctor_args.extend(field_nodes.dependencies)
Expand Down
2 changes: 1 addition & 1 deletion src/basilisp/lang/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ def add_generated_python(
which_ns = get_current_ns()
v = Maybe(which_ns.find(sym.symbol(GENERATED_PYTHON_VAR_NAME))).or_else(
lambda: Var.intern(
which_ns, # type: ignore
which_ns, # type: ignore[arg-type, unused-ignore]
sym.symbol(GENERATED_PYTHON_VAR_NAME),
"",
dynamic=True,
Expand Down

0 comments on commit c894265

Please sign in to comment.