Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jdunkerley committed Sep 27, 2023
1 parent c4dac6b commit 701ca74
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion distribution/lib/Standard/AWS/0.0.0-dev/src/Errors.enso
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type AWS_SDK_Error
to_display_text self = "AWS SDK Error: " + self.message

## PRIVATE
handle_java_errors : AWS_SDK_Error
handle_java_errors : Any -> Any ! AWS_SDK_Error
handle_java_errors ~action =
Panic.catch SdkClientException action caught_panic->
Error.throw (AWS_SDK_Error.Error caught_panic.payload.getMessage)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import project.Data.Vector.Vector
import project.Errors.Illegal_Argument.Illegal_Argument
import project.Panic.Panic
from project.Data.Boolean import Boolean, False, True
from project.Internal.Time.Format.Parser import Common_Nodes, Standard_Date_Patterns, ISO_Week_Year_Patterns, Time_Patterns, Time_Zone_Patterns
from project.Internal.Time.Format.Parser import Text_Representation, Numeric_Representation, Two_Digit_Year_Representation
from project.Internal.Time.Format.Parser import Common_Nodes, ISO_Week_Year_Patterns, Numeric_Representation, Standard_Date_Patterns, Text_Representation, Time_Patterns, Time_Zone_Patterns, Two_Digit_Year_Representation

polyglot java import java.time.format.DateTimeFormatter
polyglot java import java.time.format.DateTimeFormatterBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ type Column
Formatting values is not supported in database columns.
@locale Locale.default_widget
format : Text | Date_Time_Formatter | Column -> Locale -> Column ! Illegal_Argument
format self (format : Text | Date_Time_Formatter | Column | Nothing)=Nothing locale=Locale.default =
format self format:(Text | Date_Time_Formatter | Column | Nothing)=Nothing locale=Locale.default =
_ = [format, locale]
Error.throw <| Unsupported_Database_Operation.Error "`Column.format` is not implemented yet for the Database backends."

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@ type Column
# ==> ["100 000 000,00", "2 222,00", "3,00"]
@locale Locale.default_widget
format : Text | Date_Time_Formatter | Column -> Locale -> Column ! Illegal_Argument
format self (format : Text | Date_Time_Formatter | Column | Nothing)=Nothing locale=Locale.default =
format self format:(Text | Date_Time_Formatter | Column | Nothing)=Nothing locale=Locale.default =
new_column = case format of
format_column : Column -> Value_Type.expect_text format_column <|
formatter = make_value_formatter_for_value_type self.value_type locale
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from Standard.Base import all
import Standard.Base.Errors.Illegal_Argument.Illegal_Argument

import Standard.Base.Metadata.Display
import Standard.Base.Metadata.Display
from Standard.Base.Metadata.Widget import Vector_Editor
from Standard.Base.Widget_Helpers import make_date_format_selector, make_time_format_selector, make_date_time_format_selector

Expand Down

0 comments on commit 701ca74

Please sign in to comment.