|
16 | 16 | member_type: atom.coerced.Coerced[builtins.int, builtins.int] |
17 | 17 | member_value_type: builtins.int |
18 | 18 | - member: Coerced |
19 | | - member_instance: Coerced(io.StringIO, None, dict(initial_value=str(1))) |
20 | | - member_type: atom.coerced.Coerced[io.StringIO, io.StringIO] |
21 | | - member_value_type: io.StringIO |
| 19 | + member_instance: Coerced(_io.StringIO, None, dict(initial_value=str(1))) |
| 20 | + member_type: atom.coerced.Coerced[_io.StringIO, _io.StringIO] |
| 21 | + member_value_type: _io.StringIO |
22 | 22 | - member: Coerced |
23 | | - member_instance: Coerced(io.StringIO, kwargs=dict(initial_value=str(1))) |
24 | | - member_type: atom.coerced.Coerced[io.StringIO, io.StringIO] |
25 | | - member_value_type: io.StringIO |
| 23 | + member_instance: Coerced(_io.StringIO, kwargs=dict(initial_value=str(1))) |
| 24 | + member_type: atom.coerced.Coerced[_io.StringIO, _io.StringIO] |
| 25 | + member_value_type: _io.StringIO |
26 | 26 | - member: Coerced |
27 | | - member_instance: Coerced(io.StringIO, factory=g) |
28 | | - member_type: atom.coerced.Coerced[io.StringIO, io.StringIO] |
29 | | - member_value_type: io.StringIO |
| 27 | + member_instance: Coerced(_io.StringIO, factory=g) |
| 28 | + member_type: atom.coerced.Coerced[_io.StringIO, _io.StringIO] |
| 29 | + member_value_type: _io.StringIO |
30 | 30 | main: | |
31 | | - import io |
| 31 | + import _io |
32 | 32 | from typing import Type |
33 | 33 | from atom.api import Atom, {{ member }} |
34 | 34 |
|
35 | | - def g() -> io.StringIO: |
36 | | - return io.StringIO() |
| 35 | + def g() -> _io.StringIO: |
| 36 | + return _io.StringIO() |
37 | 37 |
|
38 | 38 | class A(Atom): |
39 | 39 | m = {{ member_instance }} |
|
45 | 45 | - case: coerced_coercer |
46 | 46 | parametrized: |
47 | 47 | - member: Coerced |
48 | | - member_instance: Coerced(io.StringIO, coercer=coercer) |
49 | | - member_type: atom.coerced.Coerced[io.StringIO, Union[io.StringIO, builtins.str]] |
50 | | - member_value_type: io.StringIO |
| 48 | + member_instance: Coerced(_io.StringIO, coercer=coercer) |
| 49 | + member_type: atom.coerced.Coerced[_io.StringIO, Union[_io.StringIO, builtins.str]] |
| 50 | + member_value_type: _io.StringIO |
51 | 51 | - member: Coerced |
52 | | - member_instance: Coerced(io.StringIO, (), coercer=coercer) |
53 | | - member_type: atom.coerced.Coerced[io.StringIO, Union[io.StringIO, builtins.str]] |
54 | | - member_value_type: io.StringIO |
| 52 | + member_instance: Coerced(_io.StringIO, (), coercer=coercer) |
| 53 | + member_type: atom.coerced.Coerced[_io.StringIO, Union[_io.StringIO, builtins.str]] |
| 54 | + member_value_type: _io.StringIO |
55 | 55 | - member: Coerced |
56 | | - member_instance: Coerced(io.StringIO, None, dict(initial_value=str(1)), coercer=coercer) |
57 | | - member_type: atom.coerced.Coerced[io.StringIO, Union[io.StringIO, builtins.str]] |
58 | | - member_value_type: io.StringIO |
| 56 | + member_instance: Coerced(_io.StringIO, None, dict(initial_value=str(1)), coercer=coercer) |
| 57 | + member_type: atom.coerced.Coerced[_io.StringIO, Union[_io.StringIO, builtins.str]] |
| 58 | + member_value_type: _io.StringIO |
59 | 59 | - member: Coerced |
60 | | - member_instance: Coerced(io.StringIO, kwargs=dict(initial_value=str(1)), coercer=coercer) |
61 | | - member_type: atom.coerced.Coerced[io.StringIO, Union[io.StringIO, builtins.str]] |
62 | | - member_value_type: io.StringIO |
| 60 | + member_instance: Coerced(_io.StringIO, kwargs=dict(initial_value=str(1)), coercer=coercer) |
| 61 | + member_type: atom.coerced.Coerced[_io.StringIO, Union[_io.StringIO, builtins.str]] |
| 62 | + member_value_type: _io.StringIO |
63 | 63 | - member: Coerced |
64 | | - member_instance: Coerced(io.StringIO, factory=g, coercer=coercer) |
65 | | - member_type: atom.coerced.Coerced[io.StringIO, Union[io.StringIO, builtins.str]] |
66 | | - member_value_type: io.StringIO |
| 64 | + member_instance: Coerced(_io.StringIO, factory=g, coercer=coercer) |
| 65 | + member_type: atom.coerced.Coerced[_io.StringIO, Union[_io.StringIO, builtins.str]] |
| 66 | + member_value_type: _io.StringIO |
67 | 67 | main: | |
68 | | - import io |
| 68 | + import _io |
69 | 69 | from typing import Type |
70 | 70 | from atom.api import Atom, {{ member }} |
71 | 71 |
|
72 | | - def coercer(x: str) -> io.StringIO: |
73 | | - return io.StringIO(x) |
| 72 | + def coercer(x: str) -> _io.StringIO: |
| 73 | + return _io.StringIO(x) |
74 | 74 |
|
75 | | - def g() -> io.StringIO: |
76 | | - return io.StringIO() |
| 75 | + def g() -> _io.StringIO: |
| 76 | + return _io.StringIO() |
77 | 77 |
|
78 | 78 | class A(Atom): |
79 | 79 | m = {{ member_instance }} |
|
0 commit comments