FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
hatch-cpp/hatch_cpp/utils.py at tkp/tc · python-project-templates/hatch-cpp · GitHub
python-project-templates
hatch-cpp
Repository navigation
Code
Issues
4
(4)
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
hatch-cpp
/
hatch_cpp
/
utils.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (7 loc) · 297 Bytes
Breadcrumbs
hatch-cpp
/
hatch_cpp
/
utils.py
Copy path
File metadata and controls
12 lines (7 loc) · 297 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
from
__future__
import
annotations
from
functools
import
lru_cache
from
pydantic
import
ImportString
,
TypeAdapter
_import_string_adapter
=
TypeAdapter
(
ImportString
)
@
lru_cache
(
maxsize
=
None
)
def
import_string
(
input_string
:
str
):
return
_import_string_adapter
.
validate_python
(
input_string
)
Back
|
FazBrowse Home
|
New Git URL