File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 11using Documenter, TableTraits
22
33makedocs (
4- modules = [TableTraits],
5- sitename = " TableTraits.jl" ,
4+ modules= [TableTraits],
5+ sitename= " TableTraits.jl" ,
66 analytics= " UA-132838790-1" ,
7- pages = [
7+ pages= [
88 " Introduction" => " index.md"
99 ]
1010)
1111
1212deploydocs (
13- repo = " github.com/queryverse/TableTraits.jl.git"
13+ repo= " github.com/queryverse/TableTraits.jl.git"
1414)
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ export supports_get_columns_view, get_columns_view
1212function isiterabletable (x:: T ) where {T}
1313 isiterable (x) || return false
1414
15- if Base. IteratorEltype (x)== Base. HasEltype ()
15+ if Base. IteratorEltype (x) == Base. HasEltype ()
1616 et = Base. eltype (x)
1717 if et === Union{}
1818 return false
1919 elseif et <: NamedTuple
2020 return true
21- elseif et=== Any
21+ elseif et === Any
2222 return missing
2323 else
2424 return false
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ using Test
44
55@testset " TableTraits" begin
66
7- table_array = [(a= 1 ,), (a= 2 ,)]
8- any_table_array = Any[(a= 1 ,), (a= 2 ,)]
7+ table_array = [(a = 1 ,), (a = 2 ,)]
8+ any_table_array = Any[(a = 1 ,), (a = 2 ,)]
99other_array = [1 ,2 ,3 ]
1010without_eltype = (i for i in table_array)
1111
1212@test isiterabletable (table_array)
1313@test ! isiterabletable (other_array)
14- @test isiterabletable (without_eltype)=== missing
15- @test isiterabletable (any_table_array)=== missing
14+ @test isiterabletable (without_eltype) === missing
15+ @test isiterabletable (any_table_array) === missing
1616@test ! supports_get_columns_copy (table_array)
1717@test ! supports_get_columns_view (table_array)
1818@test ! supports_get_columns_copy_using_missing (table_array)
You can’t perform that action at this time.
0 commit comments