FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
knack/knack/validators.py at dev · microsoft/knack · GitHub
microsoft
/
knack
Public
Notifications
You must be signed in to change notification settings
Fork
102
Star
358
Code
Issues
36
Pull requests
10
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
knack
/
knack
/
validators.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (14 loc) · 699 Bytes
Breadcrumbs
knack
/
knack
/
validators.py
Copy path
File metadata and controls
20 lines (14 loc) · 699 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
13
14
15
16
17
18
19
20
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
class
DefaultStr
(
str
):
def
__new__
(
cls
,
*
args
,
**
kwargs
):
instance
=
str
.
__new__
(
cls
,
*
args
,
**
kwargs
)
instance
.
is_default
=
True
return
instance
class
DefaultInt
(
int
):
def
__new__
(
cls
,
*
args
,
**
kwargs
):
instance
=
int
.
__new__
(
cls
,
*
args
,
**
kwargs
)
instance
.
is_default
=
True
return
instance
Back
|
FazBrowse Home
|
New Git URL