Skip to content

Commit

Permalink
Fix FutureWarning "Cython directive 'language_level' not set" (#33046)
Browse files Browse the repository at this point in the history
fix FutureWarning
  • Loading branch information
deanlee authored Jul 23, 2024
1 parent bd00a9d commit fb33366
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion selfdrive/modeld/models/commonmodel_pyx.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# distutils: language = c++
# cython: c_string_encoding=ascii
# cython: c_string_encoding=ascii, language_level=3

import numpy as np
cimport numpy as cnp
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/modeld/runners/runmodel_pyx.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# distutils: language = c++
# cython: c_string_encoding=ascii
# cython: c_string_encoding=ascii, language_level=3

from libcpp.string cimport string

Expand Down
2 changes: 1 addition & 1 deletion selfdrive/modeld/runners/snpemodel_pyx.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# distutils: language = c++
# cython: c_string_encoding=ascii
# cython: c_string_encoding=ascii, language_level=3

import os
from libcpp cimport bool
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/modeld/runners/thneedmodel_pyx.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# distutils: language = c++
# cython: c_string_encoding=ascii
# cython: c_string_encoding=ascii, language_level=3

from libcpp cimport bool
from libcpp.string cimport string
Expand Down

0 comments on commit fb33366

Please sign in to comment.