Skip to content

Commit 5980157

Browse files
committed
Add type hints to session functions
1 parent 7b6aaf0 commit 5980157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/clj_ssh/ssh.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
(add-identity agent options)))))
234234

235235
;;; Sessions
236-
(defn- session-impl
236+
(defn- ^Session session-impl
237237
[^JSch agent hostname username port ^String password options]
238238
(let [session (.getSession agent username hostname port)]
239239
(when password
@@ -247,7 +247,7 @@
247247
(as-string v)))
248248
session))
249249

250-
(defn session
250+
(defn ^Session session
251251
"Start a SSH session.
252252
Requires hostname. you can also pass values for :username, :password and :port
253253
keys. All other option key pairs will be passed as SSH config options."

0 commit comments

Comments
 (0)