修改为东南天坐标系
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import inspect
|
||||
import sys
|
||||
import types
|
||||
from dataclasses import _MISSING_TYPE, MISSING, Field, field, fields, make_dataclass
|
||||
from functools import lru_cache, wraps
|
||||
from typing import (
|
||||
@@ -597,6 +599,10 @@ _BASIC_TYPE_VALIDATORS = {
|
||||
set: _validate_set,
|
||||
}
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
# TODO: make it first class citizen when bumping to Python 3.10+
|
||||
_BASIC_TYPE_VALIDATORS[types.UnionType] = _validate_union # x | y syntax, available only Python 3.10+
|
||||
|
||||
|
||||
__all__ = [
|
||||
"strict",
|
||||
|
||||
Reference in New Issue
Block a user