@@ -56,7 +56,7 @@ cdef class Logger:
5656 """
5757 return cpp_verbosity_level(self ._comm._handle)
5858
59- def print (self , msg: str ):
59+ def print (self , str msg not None ):
6060 """
6161 Logs a print message.
6262
@@ -68,7 +68,7 @@ cdef class Logger:
6868 cdef string _msg = msg.encode()
6969 cpp_log(LOG_LEVEL.PRINT, self ._comm._handle, move(_msg))
7070
71- def warn (self , msg: str ):
71+ def warn (self , str msg not None ):
7272 """
7373 Logs a warning message.
7474
@@ -80,7 +80,7 @@ cdef class Logger:
8080 cdef string _msg = msg.encode()
8181 cpp_log(LOG_LEVEL.WARN, self ._comm._handle, move(_msg))
8282
83- def info (self , msg: str ):
83+ def info (self , str msg not None ):
8484 """
8585 Logs an informational message.
8686
@@ -92,7 +92,7 @@ cdef class Logger:
9292 cdef string _msg = msg.encode()
9393 cpp_log(LOG_LEVEL.INFO, self ._comm._handle, move(_msg))
9494
95- def debug (self , msg: str ):
95+ def debug (self , str msg not None ):
9696 """
9797 Logs a debug message.
9898
@@ -104,7 +104,7 @@ cdef class Logger:
104104 cdef string _msg = msg.encode()
105105 cpp_log(LOG_LEVEL.DEBUG, self ._comm._handle, move(_msg))
106106
107- def trace (self , msg: str ):
107+ def trace (self , str msg not None ):
108108 """
109109 Logs a trace message.
110110
0 commit comments