Skip to content

Commit 7c6b257

Browse files
authored
use proper hinting for the BaseConnection.__init__ session_log argument (#3727)
1 parent 423b407 commit 7c6b257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netmiko/base_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def __init__(
193193
serial_settings: Optional[Dict[str, Any]] = None,
194194
fast_cli: bool = True,
195195
_legacy_mode: bool = False,
196-
session_log: Optional[SessionLog] = None,
196+
session_log: Optional[Union[str, io.BufferedIOBase, SessionLog]] = None,
197197
session_log_record_writes: bool = False,
198198
session_log_file_mode: str = "write",
199199
allow_auto_change: bool = False,

0 commit comments

Comments
 (0)