Skip to content

Commit

Permalink
Improve static typing support (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
mphe committed May 14, 2024
1 parent 8167e87 commit 62b9bde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion addons/gut/gut.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
extends 'res://addons/gut/gut_to_move.gd'
class_name GutMain

# ##############################################################################
#
Expand Down Expand Up @@ -921,7 +922,7 @@ func _get_files(path, prefix, suffix):
# public
#
#########################
func get_elapsed_time():
func get_elapsed_time() -> float:
var to_return = 0.0
if(_start_time != 0.0):
to_return = Time.get_ticks_msec() - _start_time
Expand Down
2 changes: 1 addition & 1 deletion addons/gut/test.gd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var _compare = _utils.Comparator.new()
# Need a reference to the instance that is running the tests. This
# is set by the gut class when it runs the tests. This gets you
# access to the asserts in the tests you write.
var gut = null
var gut: GutMain = null

var _disable_strict_datatype_checks = false
# Holds all the text for a test's fail/pass. This is used for testing purposes
Expand Down

0 comments on commit 62b9bde

Please sign in to comment.