Skip to content

Commit

Permalink
Make __all__ a list of strings
Browse files Browse the repository at this point in the history
This fixes mypy from producing this error:

```
$ stubgen -m txredisapi
Traceback (most recent call last):
  File ".../.venv/bin/stubgen", line 8, in <module>
    sys.exit(main())
  File "mypy/stubgen.py", line 1564, in main
  File "mypy/stubgen.py", line 1442, in generate_stubs
  File "mypy/stubgen.py", line 1385, in generate_stub_from_ast
  File "mypy/stubgen.py", line 515, in __init__
TypeError: str object expected; got function
```
  • Loading branch information
ShadowJonathan authored Sep 20, 2020
1 parent 5da94b9 commit de2c1e1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions txredisapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2794,15 +2794,15 @@ def slave_for(self, service_name, factory_class=SentinelConnectionFactory,


__all__ = [
Connection, lazyConnection,
ConnectionPool, lazyConnectionPool,
ShardedConnection, lazyShardedConnection,
ShardedConnectionPool, lazyShardedConnectionPool,
UnixConnection, lazyUnixConnection,
UnixConnectionPool, lazyUnixConnectionPool,
ShardedUnixConnection, lazyShardedUnixConnection,
ShardedUnixConnectionPool, lazyShardedUnixConnectionPool,
Sentinel, MasterNotFoundError
"Connection", "lazyConnection",
"ConnectionPool", "lazyConnectionPool",
"ShardedConnection", "lazyShardedConnection",
"ShardedConnectionPool", "lazyShardedConnectionPool",
"UnixConnection", "lazyUnixConnection",
"UnixConnectionPool", "lazyUnixConnectionPool",
"ShardedUnixConnection", "lazyShardedUnixConnection",
"ShardedUnixConnectionPool", "lazyShardedUnixConnectionPool",
"Sentinel", "MasterNotFoundError"
]

__author__ = "Alexandre Fiori"
Expand Down

0 comments on commit de2c1e1

Please sign in to comment.