-
```py
class Settings(Dynaconf):
number: int
other: float
dynaconf_options = Options(coerce=True)
```
```toml
number = "23"
```
```bash
export DYNACONF_OTHER=42
```
```py
…
-
We implicitly convert strings to numbers if they are coercible in math operations, and likewise pretty much everything is coercible to string via Java's toString method. Something to consider is that …
-
When defining a route with an array value in the query params like so:
```
{:get {:parameters {:query {:strings [string?]}}
:handler (fn [{{:keys [query]} :parameters}]
…
-
I was working on some code which here is a minimized equivalent: ([playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=f6bcb9831f819220401cdae0576340fc))
```rust
fn m…
-
The blame labels are different.
```bash
$ grift --type-based-casts p1.grift
$ ./a.out
Implicit cast in ascription on expression at p1.grift:2:2
$ grift --coercions p1.grift
$ ./a.out
Impl…
-
## Bug Report
### Version
0.1.29
### Platform
* Darwin 21.2.0
* Also tested on play.rust-lang.org
### Description
I added `tracing::instrument` to some of our code and sur…
-
NeoLua Version: 1.3.14
Setting up a simple example to demonstrate the odd, unexpected and (I think) undesirable behavior of LuaTable. In short LuaTable neither tries to coerce to type or just do …
-
Currently, if writing:
sub foo(Num() $n is rw) { $n++ }
Then we can call it successfully like this:
my $x = 1e0;
foo($x);
dd $x; # Num $x = 2e0
However, if the coercio…
jnthn updated
3 years ago
-
_This issue was originally filed by matthe...@gmail.com_
---
**What steps will reproduce the problem?**
1. Create an if statement with an is operator to test a member variable type against a su…
-
I found this error quite unhelpful:
```
$ sudo nixos-rebuild test
building Nix...
building the system configuration...
error: cannot coerce a set to a string, at "/nix/var/nix/profiles/per-user/root/…