Fix deprecation warnings

5 jobs for master in 6 minutes and 33 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #226993
docker
build_linux_37

00:02:28

94.0%
passed #226994
docker
build_linux_38

00:02:31

94.0%
passed #226991
intel macos
build_macos_intel_37

00:05:42

94.0%
passed #226992
intel macos
build_macos_intel_38

00:05:42

94.0%
 
  Deploy
passed #226995
docker
deploy_beta

00:00:47