<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/gitlab.git/gitlab/base.py, branch v2.7.1</title>
<subtitle>github.com: gpocentek/python-gitlab.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/'/>
<entry>
<title>chore: make RESTObject._short_print_attrs always present</title>
<updated>2021-04-24T19:10:59+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-04-24T19:10:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=6d551208f4bc68d091a16323ae0d267fbb6003b6'/>
<id>6d551208f4bc68d091a16323ae0d267fbb6003b6</id>
<content type='text'>
Always create RESTObject._short_print_attrs with a default value of
None.

This way we don't need to use hasattr() and we will know the type of
the attribute.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Always create RESTObject._short_print_attrs with a default value of
None.

This way we don't need to use hasattr() and we will know the type of
the attribute.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #1383 from spyoungtech/dirfix</title>
<updated>2021-04-21T19:04:40+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-04-21T19:04:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=60c5fd8878ff54f6e3fcd168545ab3af139f1dcc'/>
<id>60c5fd8878ff54f6e3fcd168545ab3af139f1dcc</id>
<content type='text'>
fix(types): prevent __dir__ in RestObject from producing duplicates</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fix(types): prevent __dir__ in RestObject from producing duplicates</pre>
</div>
</content>
</entry>
<entry>
<title>chore: have _create_attrs &amp; _update_attrs be a namedtuple</title>
<updated>2021-04-17T15:09:41+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-03-07T19:31:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=aee1f496c1f414c1e30909767d53ae624fe875e7'/>
<id>aee1f496c1f414c1e30909767d53ae624fe875e7</id>
<content type='text'>
Convert _create_attrs and _update_attrs to use a NamedTuple
(RequiredOptional) to help with code readability. Update all code to
use the NamedTuple.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Convert _create_attrs and _update_attrs to use a NamedTuple
(RequiredOptional) to help with code readability. Update all code to
use the NamedTuple.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(types): prevent __dir__ from producing duplicates</title>
<updated>2021-03-23T19:51:34+00:00</updated>
<author>
<name>Spencer Young</name>
<email>spencer.young@spyoung.com</email>
</author>
<published>2021-03-23T19:51:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=5bf7525d2d37968235514d1b93a403d037800652'/>
<id>5bf7525d2d37968235514d1b93a403d037800652</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: add _create_attrs &amp; _update_attrs to RESTManager</title>
<updated>2021-03-10T16:37:07+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-03-07T19:31:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=147f05d43d302d9a04bc87d957c79ce9e54cdaed'/>
<id>147f05d43d302d9a04bc87d957c79ce9e54cdaed</id>
<content type='text'>
Add the attributes: _create_attrs and _update_attrs to the RESTManager
class. This is so that we stop using getattr() if we don't need to.

This also helps with type-hints being available for these attributes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the attributes: _create_attrs and _update_attrs to the RESTManager
class. This is so that we stop using getattr() if we don't need to.

This also helps with type-hints being available for these attributes.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: checking if RESTManager._from_parent_attrs is set</title>
<updated>2021-03-07T23:17:33+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-03-07T23:17:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=8224b4066e84720d7efed3b7891c47af73cc57ca'/>
<id>8224b4066e84720d7efed3b7891c47af73cc57ca</id>
<content type='text'>
Prior to commit 3727cbd21fc40b312573ca8da56e0f6cf9577d08
RESTManager._from_parent_attrs did not exist unless it was explicitly
set. But commit 3727cbd21fc40b312573ca8da56e0f6cf9577d08 set it to a
default value of {}.

So the checks using hasattr() were no longer valid.

Update the checks to check if RESTManager._from_parent_attrs has a
value.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prior to commit 3727cbd21fc40b312573ca8da56e0f6cf9577d08
RESTManager._from_parent_attrs did not exist unless it was explicitly
set. But commit 3727cbd21fc40b312573ca8da56e0f6cf9577d08 set it to a
default value of {}.

So the checks using hasattr() were no longer valid.

Update the checks to check if RESTManager._from_parent_attrs has a
value.
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: make _types always present in RESTManager</title>
<updated>2021-03-07T17:30:22+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-03-07T17:16:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=924f83eb4b5e160bd231efc38e2eea0231fa311f'/>
<id>924f83eb4b5e160bd231efc38e2eea0231fa311f</id>
<content type='text'>
We now create _types = {} in RESTManager class.

By making _types always present in RESTManager it makes the code
simpler. We no longer have to do:
   types = getattr(self, "_types", {})

And the type checker now understands the type.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We now create _types = {} in RESTManager class.

By making _types always present in RESTManager it makes the code
simpler. We no longer have to do:
   types = getattr(self, "_types", {})

And the type checker now understands the type.
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: add type hints to gitlab/base.py:RESTManager</title>
<updated>2021-03-02T01:57:01+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-03-02T01:57:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=9c55593ae6a7308176710665f8bec094d4cadc2e'/>
<id>9c55593ae6a7308176710665f8bec094d4cadc2e</id>
<content type='text'>
Add some additional type hints to gitlab/base.py
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add some additional type hints to gitlab/base.py
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: disallow incomplete type defs</title>
<updated>2021-02-28T16:48:31+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-02-27T01:35:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=907634fe4d0d30706656b8bc56260b5532613e62'/>
<id>907634fe4d0d30706656b8bc56260b5532613e62</id>
<content type='text'>
Don't allow a partially annotated function definition. Either none of
the function is annotated or all of it must be.

Update code to ensure no-more partially annotated functions.

Update gitlab/cli.py with better type-hints. Changed Tuple[Any, ...]
to Tuple[str, ...]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't allow a partially annotated function definition. Either none of
the function is annotated or all of it must be.

Update code to ensure no-more partially annotated functions.

Update gitlab/cli.py with better type-hints. Changed Tuple[Any, ...]
to Tuple[str, ...]
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: add additional type-hints for gitlab/base.py</title>
<updated>2021-02-27T21:06:17+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-02-27T20:45:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=ad72ef35707529058c7c680f334c285746b2f690'/>
<id>ad72ef35707529058c7c680f334c285746b2f690</id>
<content type='text'>
Add type-hints for the variables which are set via self.__dict__

mypy doesn't see them when they are assigned via self.__dict__. So
declare them in the class definition.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add type-hints for the variables which are set via self.__dict__

mypy doesn't see them when they are assigned via self.__dict__. So
declare them in the class definition.
</pre>
</div>
</content>
</entry>
</feed>
