Skip to content

Commit

Permalink
no implicit type casting (#841)
Browse files Browse the repository at this point in the history
Many of the evaluable array ops (the functions, not the classes) support
automatic type casting. For example you can do evaluable.add(1, 1.5) without
problems. However, you can also do evaluable.add(True, 1) (evaluates to 2,
int), and here implicit casting makes less sense. To prevent unforeseen casts,
this PR disallows all implicit casting in evaluable array ops.
  • Loading branch information
joostvanzwieten committed Dec 18, 2023
2 parents 2d60464 + 9195274 commit 7d5a645
Show file tree
Hide file tree
Showing 6 changed files with 191 additions and 115 deletions.
2 changes: 1 addition & 1 deletion nutils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'Numerical Utilities for Finite Element Analysis'

__version__ = version = '9a8'
__version__ = version = '9a9'
version_name = 'jook-sing'
Loading

0 comments on commit 7d5a645

Please sign in to comment.