diff options
| author | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2021-12-15 16:20:34 +0100 |
|---|---|---|
| committer | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2021-12-15 16:33:43 +0100 |
| commit | 6879a45f382ae396e88d16e75a7b13bbbd6309a2 (patch) | |
| tree | e3a4dccb828811a581bf6b11256313494350f9fc /astroid/builder.py | |
| parent | 665574122cb6302fa5342c6f3570c674fcaf0a44 (diff) | |
| download | astroid-git-6879a45f382ae396e88d16e75a7b13bbbd6309a2.tar.gz | |
Fix incorrect typing of optional default values
Diffstat (limited to 'astroid/builder.py')
| -rw-r--r-- | astroid/builder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/builder.py b/astroid/builder.py index b2c83262..ea9d7dc8 100644 --- a/astroid/builder.py +++ b/astroid/builder.py @@ -25,7 +25,7 @@ import os import textwrap import types from tokenize import detect_encoding -from typing import List, Union +from typing import List, Optional, Union from astroid import bases, modutils, nodes, raw_building, rebuilder, util from astroid._ast import get_parser_module @@ -82,7 +82,7 @@ class AstroidBuilder(raw_building.InspectBuilder): self._apply_transforms = apply_transforms def module_build( - self, module: types.ModuleType, modname: str = None + self, module: types.ModuleType, modname: Optional[str] = None ) -> nodes.Module: """Build an astroid from a living module instance.""" node = None |
