Skip to content

Commit 8014091

Browse files
authored
Merge pull request #21 from JuliaAI/dev
For a 3.0.0 release
2 parents d93bb1a + b3e4064 commit 8014091

File tree

4 files changed

+8
-18
lines changed

4 files changed

+8
-18
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name = "StatisticalTraits"
22
uuid = "64bff920-2084-43da-a3e6-9bb72801c0c9"
33
authors = ["Anthony D. Blaom <[email protected]>"]
4-
version = "2.1.0"
4+
version = "3.0.0"
55

66
[deps]
77
ScientificTypesBase = "30f210dd-8aff-4c5f-94ba-8e64358c1161"
88

99
[compat]
10-
ScientificTypesBase = "^1, 2"
10+
ScientificTypesBase = "1, 2, 3"
1111
julia = "^1"
1212

1313
[extras]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ prediction_type(::Type) = :unknown # also :probablistic, :deterministic, :interv
1919
```
2020

2121
Here `Unknown` is a type defined in the light-weight package
22-
[ScientificTypes.jl](https://github.com/JuliaAI/ScientificTypes.jl),
22+
[ScientificTypesBase.jl](https://github.com/JuliaAI/ScientificTypesBase.jl),
2323
the only dependency of StatsTraits.jl.
2424

2525
Refer to [source code](src/StatisticalTraits.jl) for a complete list.

src/StatisticalTraits.jl

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -211,17 +211,12 @@ end
211211
"""
212212
info(X)
213213
214-
Return a named-tuple of trait values for `X`, keyed on a list of
215-
traits that are meaninful for the object.
214+
Return a named-tuple of trait values for `X`, keyed on the names of
215+
traits that are meaningful for the object.
216216
217217
*Note on overloading.* This method can be overloaded directly, as in
218-
`info(X::SomeAbstractType) = ...` or, using `info(X,
219-
::Val{:some_trait}) = ...` where `:some_trait` is a key of
220-
`ScientificTypesBase.TRAIT_FUNCTION_GIVEN_NAME` (such as `:is_measure`
221-
with value `is_measure`).
222-
218+
`info(X::SomeAbstractType) = ...`.
223219
"""
224-
info(X) = info(X, Val(ScientificTypesBase.trait(X)))
225-
info(X, ::Val{:other}) = NamedTuple()
220+
function info end
226221

227-
end # module
222+
end #module

test/runtests.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,3 @@ const NONCONSTANT = [:docstring,
9999
Main.eval(ex)
100100
end
101101
end
102-
103-
104-
## INFO STUB
105-
106-
@test StatisticalTraits.info(42) == NamedTuple()

0 commit comments

Comments
 (0)