@@ -537,13 +537,13 @@ end
537537init_watching (files) = init_watching (pkgdatas[NOPACKAGE], files)
538538
539539"""
540- revise_dir_queued(dirname)
540+ revise_dir_queued(dirname::AbstractString )
541541
542542Wait for one or more of the files registered in `Revise.watched_files[dirname]` to be
543543modified, and then queue the corresponding files on [`Revise.revision_queue`](@ref).
544544This is generally called via a [`Revise.TaskThunk`](@ref).
545545"""
546- @noinline function revise_dir_queued (dirname)
546+ @noinline function revise_dir_queued (dirname:: AbstractString )
547547 @assert isabspath (dirname)
548548 if ! isdir (dirname)
549549 sleep (0.1 ) # in case git has done a delete/replace cycle
@@ -891,7 +891,7 @@ it defaults to `Main`.
891891
892892If this produces many errors, check that you specified `mod` correctly.
893893"""
894- function track (mod:: Module , file; mode= :sigs , kwargs... )
894+ function track (mod:: Module , file:: AbstractString ; mode= :sigs , kwargs... )
895895 isfile (file) || error (file, " is not a file" )
896896 # Determine whether we're already tracking this file
897897 id = Base. moduleroot (mod) == Main ? PkgId (mod, string (mod)) : PkgId (mod) # see #689 for `Main`
@@ -935,13 +935,13 @@ function track(mod::Module, file; mode=:sigs, kwargs...)
935935 return nothing
936936end
937937
938- function track (file; kwargs... )
938+ function track (file:: AbstractString ; kwargs... )
939939 startswith (file, juliadir) && error (" use Revise.track(Base) or Revise.track(<stdlib module>)" )
940940 track (Main, file; kwargs... )
941941end
942942
943943"""
944- includet(filename)
944+ includet(filename::AbstractString )
945945
946946Load `filename` and track future changes. `includet` is intended for quick "user scripts"; larger or more
947947established projects are encouraged to put the code in one or more packages loaded with `using`
@@ -1001,7 +1001,7 @@ try fixing it with something like `push!(LOAD_PATH, "/path/to/my/private/repos")
10011001they will not be automatically tracked.
10021002(Call [`Revise.track`](@ref) manually on each file, if you've already `included`d all the code you need.)
10031003"""
1004- function includet (mod:: Module , file)
1004+ function includet (mod:: Module , file:: AbstractString )
10051005 prev = Base. source_path (nothing )
10061006 file = if prev === nothing
10071007 abspath (file)
@@ -1033,7 +1033,7 @@ function includet(mod::Module, file)
10331033 end
10341034 return nothing
10351035end
1036- includet (file) = includet (Main, file)
1036+ includet (file:: AbstractString ) = includet (Main, file)
10371037
10381038"""
10391039 Revise.silence(pkg)
0 commit comments