Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve inferrabilities within TOML module #38831

Merged
merged 3 commits into from
Dec 12, 2020

Conversation

aviatesk
Copy link
Sponsor Member

No description provided.

base/toml_parser.jl Outdated Show resolved Hide resolved
base/toml_parser.jl Outdated Show resolved Hide resolved
@@ -976,9 +979,10 @@ function parse_datetime(l)
end

function try_return_datetime(p, year, month, day, h, m, s, ms)
if p.Dates !== nothing
Dates = p.Dates
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@KristofferC KristofferC added the backport 1.6 Change should be backported to release-1.6 label Dec 11, 2020
@KristofferC KristofferC merged commit b3eaa34 into JuliaLang:master Dec 12, 2020
@aviatesk aviatesk deleted the typingtoml branch December 12, 2020 09:31
@KristofferC KristofferC mentioned this pull request Dec 14, 2020
53 tasks
KristofferC pushed a commit that referenced this pull request Dec 14, 2020
* improve inferrability within TOML module

* simplify with `@try` macro

* apply suggestion, use `Int64`

(cherry picked from commit b3eaa34)
@KristofferC KristofferC removed the backport 1.6 Change should be backported to release-1.6 label Dec 19, 2020
staticfloat pushed a commit that referenced this pull request Jan 15, 2021
* improve inferrability within TOML module

* simplify with `@try` macro

* apply suggestion, use `Int64`

(cherry picked from commit b3eaa34)
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
* improve inferrability within TOML module

* simplify with `@try` macro

* apply suggestion, use `Int64`
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
* improve inferrability within TOML module

* simplify with `@try` macro

* apply suggestion, use `Int64`

(cherry picked from commit b3eaa34)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants