Mypy 1.8.0 Documentationwe’ve added type hints that use only basic concrete types like str and float. What if we want to express more complex types, such as “a list of strings” or “an iterable of ints”? For example, to indicate would run just fine if you were to pass in a tuple, a set, or any other custom iterable. You can express this idea using collections.abc.Iterable: from collections.abc import Iterable # or "from typing you want to write a function that can accept either ints or strings, but no other types. You can express this using the Union type. For example, int is a subtype of Union[int, str]: 1.1. Getting started0 码力 | 234 页 | 902.89 KB | 1 年前3
Mypy 1.10.0+dev Documentationwe’ve added type hints that use only basic concrete types like str and float. What if we want to express more complex types, such as “a list of strings” or “an iterable of ints”? For example, to indicate would run just fine if you were to pass in a tuple, a set, or any other custom iterable. You can express this idea using collections.abc.Iterable [https://docs.python.org/3/library/collections.abc.html#collections you want to write a function that can accept either ints or strings, but no other types. You can express this using the Union [https://docs.python.org/3/library/typing.html#typing.Union] type. For example0 码力 | 318 页 | 270.84 KB | 1 年前3
Mypy 1.8.0 Documentationwe’ve added type hints that use only basic concrete types like str and float. What if we want to express more complex types, such as “a list of strings” or “an iterable of ints”? For example, to indicate would run just fine if you were to pass in a tuple, a set, or any other custom iterable. You can express this idea using collections.abc.Iterable [https://docs.python.org/3/library/collections.abc.html#collections you want to write a function that can accept either ints or strings, but no other types. You can express this using the Union [https://docs.python.org/3/library/typing.html#typing.Union] type. For example0 码力 | 318 页 | 271.55 KB | 1 年前3
Mypy 1.10.0+dev Documentationwe’ve added type hints that use only basic concrete types like str and float. What if we want to express more complex types, such as “a list of strings” or “an iterable of ints”? For example, to indicate would run just fine if you were to pass in a tuple, a set, or any other custom iterable. You can express this idea using collections.abc.Iterable: from collections.abc import Iterable # or "from typing you want to write a function that can accept either ints or strings, but no other types. You can express this using the Union type. For example, int is a subtype of Union[int, str]: 1.1. Getting started0 码力 | 234 页 | 913.89 KB | 1 年前3
Tornado 6.0 Documentation
License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations #0 码力 | 869 页 | 692.83 KB | 1 年前3
Tornado 6.1 Documentation
License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations #0 码力 | 931 页 | 708.03 KB | 1 年前3
peewee Documentation Release 3.4.0print(tweet.message) hello world this is fun look at this picture of my food If you want to express a complex query, use parentheses and python’s bitwise or and and operators: >>> Tweet.select().join(User) FULL JOIN.FULL_OUTER Parameters: Parameters: Parameters: Parameters: Parameters: JOIN.CROSS Express a JOIN: User = Table('users', ('id', 'username')) Note = Table('notes', ('id', 'user_id', 'content')) or more DQ objects. kwargs – Django-style keyword-argument filters. Use Django-style filters to express a WHERE clause. prefetch(*subqueries) subqueries – A list of Model classes or select queries to0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0print(tweet.message) hello world this is fun look at this picture of my food If you want to express a complex query, use parentheses and python’s bitwise or and and operators: >>> Tweet.select().join(User) may be one of: JOIN.INNER JOIN.LEFT_OUTER JOIN.RIGHT_OUTER JOIN.FULL JOIN.FULL_OUTER JOIN.CROSS Express a JOIN: User = Table('users', ('id', 'username')) Note = Table('notes', ('id', 'user_id', 'content')) or more DQ objects. kwargs – Django-style keyword-argument filters. Use Django-style filters to express a WHERE clause. prefetch(*subqueries) subqueries – A list of Model classes or select queries to0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.3.0. print(tweet.message) hello world this is fun look at this picture of my food If you want to express a complex query, use parentheses and python’s bitwise or and and operators: >>> Tweet.select().join(User) JOIN.INNER • JOIN.LEFT_OUTER • JOIN.RIGHT_OUTER • JOIN.FULL • JOIN.FULL_OUTER • JOIN.CROSS Express a JOIN: User = Table('users', ('id', 'username')) Note = Table('notes', ('id', 'user_id', 'content')) more DQ objects. • kwargs – Django-style keyword-argument filters. Use Django-style filters to express a WHERE clause. prefetch(*subqueries) Parameters subqueries – A list of Model classes or select0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0. print(tweet.message) hello world this is fun look at this picture of my food If you want to express a complex query, use parentheses and python’s bitwise or and and operators: 1.8. Querying 87 peewee JOIN.INNER • JOIN.LEFT_OUTER • JOIN.RIGHT_OUTER • JOIN.FULL • JOIN.FULL_OUTER • JOIN.CROSS Express a JOIN: User = Table('users', ('id', 'username')) Note = Table('notes', ('id', 'user_id', 'content')) more DQ objects. • kwargs – Django-style keyword-argument filters. Use Django-style filters to express a WHERE clause. 176 Chapter 1. Contents: peewee Documentation, Release 3.4.0 prefetch(*subqueries)0 码力 | 284 页 | 1.03 MB | 1 年前3
共 208 条
- 1
- 2
- 3
- 4
- 5
- 6
- 21













